Skip to content

Commit 941aa5d

Browse files
Increase waitForCompletionMarker timeout in sync integration tests (#3202)
## Why Tests run into this timeout, especially during integration test runs when we put a lot of load on our test workspace. Increasing this timeout should help reduce flakyness: logs: ``` === FAIL: integration/cmd/sync TestSyncIncrementalFileOverwritesFolder (re-run 2) (120.09s) sync_test.go:76: CLOUD_ENV=*** fixtures.go:23: Creating workspace directory /Users/***/integration-test-sync-9308e0589a2a45db9fcc68e53f472319 Warn: Failed to read git info: stat /.git: no such file or directory sync_test.go:113: timed out waiting for sync to complete ```
1 parent 2494595 commit 941aa5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration/cmd/sync/sync_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func setupSyncTest(t *testing.T, args ...string) (context.Context, *syncTest) {
104104
}
105105

106106
func (s *syncTest) waitForCompletionMarker() {
107-
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
107+
ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second)
108108
defer cancel()
109109

110110
for {

0 commit comments

Comments
 (0)