Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: tune the retryCap to stabalize the unit test (#920)
A 20ms retry cap seems not long enough for the test directories to be created, e.g.: https://oss.gprow.dev/view/gs/oss-prow-build-kpt-config-sync/pr-logs/pull/GoogleContainerTools_kpt-config-sync/918/kpt-config-sync-presubmit/1709704761911021568 1. started calling readHydratedDirWithRetry at 2023-10-04 23:02:16.385300841 2. retryied 6 times whithin 20ms ``` I1004 23:02:16.385422 17534 retry.go:75] failed to load the hydrated configs under /tmp/read-hydrated-dir-test3711104822/hydrated I1004 23:02:16.386681 17534 retry.go:75] failed to load the hydrated configs under /tmp/read-hydrated-dir-test3711104822/hydrated I1004 23:02:16.389097 17534 retry.go:75] failed to load the hydrated configs under /tmp/read-hydrated-dir-test3711104822/hydrated I1004 23:02:16.394563 17534 retry.go:75] failed to load the hydrated configs under /tmp/read-hydrated-dir-test3711104822/hydrated I1004 23:02:16.403944 17534 retry.go:75] failed to load the hydrated configs under /tmp/read-hydrated-dir-test3711104822/hydrated ``` 3. sync directory created 68ms later: sync directory "/tmp/read-hydrated-dir-test3711104822/hydrated/1234567890abcde/configs" created at 2023-10-04 23:02:16.453810924 4. symlink created 69ms later: symlink "/tmp/read-hydrated-dir-test3711104822/hydrated/rev" created and linked to "/tmp/read-hydrated-dir-test3711104822/hydrated/1234567890abcde" at 2023-10-04 23:02:16.454404483 This commit increases the cap from 20ms to 100ms.
- Loading branch information