Skip to content

Commit 018c0a2

Browse files
authored
fix: serviceenablement waiter tests (#1745)
1 parent aff447d commit 018c0a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/serviceenablement/wait/wait_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func TestEnableServiceWaitHandler(t *testing.T) {
9797

9898
handler := EnableServiceWaitHandler(ctx, apiClient, "eu01", "projectId", serviceId)
9999

100-
gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(ctx)
100+
gotRes, err := handler.SetTimeout(10 * time.Millisecond).SetSleepBeforeWait(10 * time.Millisecond).WaitWithContext(ctx)
101101

102102
if err != nil {
103103
if !tt.wantErr {
@@ -179,7 +179,7 @@ func TestDisableServiceWaitHandler(t *testing.T) {
179179

180180
handler := DisableServiceWaitHandler(ctx, apiClient, "eu01", "projectId", serviceId)
181181

182-
gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(ctx)
182+
gotRes, err := handler.SetTimeout(10 * time.Millisecond).SetSleepBeforeWait(10 * time.Millisecond).WaitWithContext(ctx)
183183

184184
if err != nil {
185185
if !tt.wantErr {

0 commit comments

Comments
 (0)