Skip to content

Commit 142bd70

Browse files
maxdmlCopilot
andauthored
Update dbos/queues_test.go
Co-authored-by: Copilot <[email protected]>
1 parent 79093be commit 142bd70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbos/queues_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ func TestQueueTimeouts(t *testing.T) {
702702
// This workflow will wait indefinitely until it is cancelled
703703
<-ctx.Done()
704704
if !errors.Is(ctx.Err(), context.Canceled) && !errors.Is(ctx.Err(), context.DeadlineExceeded) {
705-
require.True(t, errors.Is(ctx.Err(), context.Canceled) || errors.Is(ctx.Err(), context.DeadlineExceeded), "workflow was cancelled, but context error is not context.Canceled nor context.DeadlineExceeded: %v", ctx.Err())
705+
assert.True(t, errors.Is(ctx.Err(), context.Canceled) || errors.Is(ctx.Err(), context.DeadlineExceeded), "workflow was cancelled, but context error is not context.Canceled nor context.DeadlineExceeded: %v", ctx.Err())
706706
}
707707
return "", ctx.Err()
708708
}

0 commit comments

Comments
 (0)