Skip to content

Commit eb7fc69

Browse files
committed
flakyness
1 parent 0080a08 commit eb7fc69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbos/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ func TestCancelResume(t *testing.T) {
312312
assert.False(t, resumeStatus.Deadline.Equal(originalDeadline), "expected deadline to be reset after resume, but it remained the same: %v", originalDeadline)
313313

314314
// The new deadline should be after resumeStart + workflowTimeout
315-
expectedDeadline := resumeStart.Add(workflowTimeout)
315+
expectedDeadline := resumeStart.Add(workflowTimeout + 100*time.Millisecond) // 100ms buffer
316316
assert.False(t, resumeStatus.Deadline.Before(expectedDeadline), "deadline %v is too early (expected around %v)", resumeStatus.Deadline, expectedDeadline)
317317

318318
// Wait for the workflow to complete

0 commit comments

Comments
 (0)