Skip to content

Commit 29b355a

Browse files
committed
Fix test race with new behavior
1 parent 8d6418d commit 29b355a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/integration_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4303,8 +4303,10 @@ func (ts *IntegrationTestSuite) testUpdateOrderingCancel(cancelWf bool) {
43034303
}()
43044304
}
43054305

4306-
// The server does not support admitted updates, so we send the update in a separate goroutine
4307-
time.Sleep(5 * time.Second)
4306+
// The server does not support admitted updates, so we send the update in a separate goroutine.
4307+
// Keep this shorter than the activity's ScheduleToCloseTimeout (5s) so the new worker
4308+
// has time to execute activities before they time out.
4309+
time.Sleep(2 * time.Second)
43084310
// Now create a new worker on that same task queue to resume the work of the
43094311
// workflow
43104312
nextWorker := worker.New(ts.client, ts.taskQueueName, worker.Options{})

0 commit comments

Comments
 (0)