build: in tests use t.Context, added in go1.24
This commit is contained in:
@@ -539,8 +539,7 @@ func TestOnFinish(t *testing.T) {
|
||||
func TestOnFinishAlreadyFinished(t *testing.T) {
|
||||
jobID.Store(0)
|
||||
done := make(chan struct{})
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
ctx := t.Context()
|
||||
job, _, err := NewJob(ctx, shortFn, rc.Params{})
|
||||
assert.NoError(t, err)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user