fix(test): increase retry tick duration in tests (#10787)

Adjust the retry tick duration in various tests to one minute to improve
reliability and reduce the frequency of retries.
This commit is contained in:
Silvan
2025-09-25 08:47:29 +02:00
committed by GitHub
parent 08f41e034e
commit 4900ac477a
6 changed files with 11 additions and 13 deletions
@@ -1181,7 +1181,7 @@ func TestServer_ListUsers(t *testing.T) {
setPermissionCheckV2Flag(t, f.SetFlag)
infos := tc.args.dep(IamCTX, tc.args.req)
retryDuration, tick := integration.WaitForAndTickWithMaxDuration(tc.args.ctx, 20*time.Second)
retryDuration, tick := integration.WaitForAndTickWithMaxDuration(tc.args.ctx, time.Minute)
require.EventuallyWithT(t1, func(ttt *assert.CollectT) {
got, err := Client.ListUsers(tc.args.ctx, tc.args.req)
if tc.wantErr {
@@ -1138,7 +1138,7 @@ func TestServer_ListUsers(t *testing.T) {
infos := tc.args.dep(IamCTX, tc.args.req)
// retryDuration, tick := integration.WaitForAndTickWithMaxDuration(tt.args.ctx, 10*time.Minute)
retryDuration, tick := integration.WaitForAndTickWithMaxDuration(tc.args.ctx, 20*time.Second)
retryDuration, tick := integration.WaitForAndTickWithMaxDuration(tc.args.ctx, time.Minute)
require.EventuallyWithT(t1, func(ttt *assert.CollectT) {
got, err := Client.ListUsers(tc.args.ctx, tc.args.req)
if tc.wantErr {