Skip to content

Commit

Permalink
fix another test
Browse files Browse the repository at this point in the history
Signed-off-by: lance6716 <lance6716@gmail.com>
  • Loading branch information
lance6716 committed Mar 16, 2023
1 parent 24bd2b9 commit 2f9da8d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions executor/asyncloaddata/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,8 @@ func TestJobIsFailedAndGetAllJobs(t *testing.T) {
info, err = GetJobInfo(ctx, tk.Session(), id, "user")
require.NoError(t, err)
checkEqualIgnoreTimes(t, expected, info)
err = UpdateJobExpectedStatus(ctx, tk.Session(), id, JobExpectedCanceled)
require.NoError(t, err)
info, err = GetJobInfo(ctx, tk.Session(), id, "user")
require.NoError(t, err)
checkEqualIgnoreTimes(t, expected, info)
err = CancelJob(ctx, tk.Session(), id, "user")
require.ErrorContains(t, err, "The current job status cannot perform the operation. need status running or paused, but got failed")

// add job of another user and test GetAllJobInfo

Expand Down

0 comments on commit 2f9da8d

Please sign in to comment.