Skip to content

Commit d8fd6e7

Browse files
committed
Increase artificial delay for 2 cluster conformance tests
It delays a bit in between exporting the services so the timestamps differ to make conflict checking deterministic. However 100 ms is too short as creation timestamps have seconds granularity so increase the delay to at least 1 sec. Signed-off-by: Tom Pantelis <[email protected]>
1 parent a807ec6 commit d8fd6e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

conformance/conformance_suite.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,9 @@ func newTwoClusterTestDriver(t *testDriver) *twoClusterTestDriver {
349349
})
350350

351351
JustBeforeEach(func() {
352-
// Sleep a little before deploying on the second cluster to ensure the first cluster's ServiceExport timestamp
353-
// is older so conflict checking is deterministic.
354-
time.Sleep(100 * time.Millisecond)
352+
// Delay a little before deploying on the second cluster to ensure the first cluster's ServiceExport timestamp
353+
// is older so conflict checking is deterministic. Make the delay at least 1 sec as creation timestamps have seconds granularity.
354+
time.Sleep(1100 * time.Millisecond)
355355

356356
t.deployHelloService(&clients[1], tt.helloService2)
357357
t.createServiceExport(&clients[1], tt.helloServiceExport2)

0 commit comments

Comments
 (0)