Skip to content

Commit ec79a19

Browse files
authored
fix(resourcemanager): prevent timeout in wait tests (#6590)
1 parent 21e0bb8 commit ec79a19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/resourcemanager/wait/wait_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func TestCreateProjectWaitHandler(t *testing.T) {
9292

9393
handler := CreateProjectWaitHandler(context.Background(), apiClient, "cid")
9494

95-
gotRes, err := handler.SetTimeout(10 * time.Millisecond).SetSleepBeforeWait(10 * time.Millisecond).WaitWithContext(context.Background())
95+
gotRes, err := handler.SetTimeout(10 * time.Millisecond).SetSleepBeforeWait(0).SetThrottle(1).WaitWithContext(context.Background())
9696

9797
if (err != nil) != tt.wantErr {
9898
t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr)

0 commit comments

Comments
 (0)