|
4 | 4 | "context" |
5 | 5 | "testing" |
6 | 6 | "testing/synctest" |
7 | | - "time" |
8 | 7 |
|
9 | 8 | "github.com/google/go-cmp/cmp" |
10 | 9 |
|
@@ -122,7 +121,7 @@ func TestCreateOrUpdateOrganizationTelemetryLinkWaitHandler(t *testing.T) { |
122 | 121 |
|
123 | 122 | handler := CreateOrUpdateOrganizationTelemetryLinkWaitHandler(context.Background(), apiClient, "pid", "eu01") |
124 | 123 |
|
125 | | - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) |
| 124 | + gotRes, err := handler.WaitWithContext(context.Background()) |
126 | 125 |
|
127 | 126 | if (err != nil) != tt.wantErr { |
128 | 127 | t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) |
@@ -182,7 +181,7 @@ func TestPartialUpdateOrganizationTelemetryLinkWaitHandler(t *testing.T) { |
182 | 181 |
|
183 | 182 | handler := PartialUpdateOrganizationTelemetryLinkWaitHandler(context.Background(), apiClient, "pid", "eu01") |
184 | 183 |
|
185 | | - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) |
| 184 | + gotRes, err := handler.WaitWithContext(context.Background()) |
186 | 185 |
|
187 | 186 | if (err != nil) != tt.wantErr { |
188 | 187 | t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) |
@@ -246,7 +245,7 @@ func TestDeleteOrganizationTelemetryLinkWaitHandler(t *testing.T) { |
246 | 245 |
|
247 | 246 | handler := DeleteOrganizationTelemetryLinkWaitHandler(context.Background(), apiClient, "pid", "eu01") |
248 | 247 |
|
249 | | - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) |
| 248 | + gotRes, err := handler.WaitWithContext(context.Background()) |
250 | 249 |
|
251 | 250 | if (err != nil) != tt.wantErr { |
252 | 251 | t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) |
@@ -309,7 +308,7 @@ func TestCreateOrUpdateFolderTelemetryLinkWaitHandler(t *testing.T) { |
309 | 308 |
|
310 | 309 | handler := CreateOrUpdateFolderTelemetryLinkWaitHandler(context.Background(), apiClient, "pid", "eu01") |
311 | 310 |
|
312 | | - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) |
| 311 | + gotRes, err := handler.WaitWithContext(context.Background()) |
313 | 312 |
|
314 | 313 | if (err != nil) != tt.wantErr { |
315 | 314 | t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) |
@@ -369,7 +368,7 @@ func TestPartialUpdateFolderTelemetryLinkWaitHandler(t *testing.T) { |
369 | 368 |
|
370 | 369 | handler := PartialUpdateFolderTelemetryLinkWaitHandler(context.Background(), apiClient, "pid", "eu01") |
371 | 370 |
|
372 | | - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) |
| 371 | + gotRes, err := handler.WaitWithContext(context.Background()) |
373 | 372 |
|
374 | 373 | if (err != nil) != tt.wantErr { |
375 | 374 | t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) |
@@ -433,7 +432,7 @@ func TestDeleteFolderTelemetryLinkWaitHandler(t *testing.T) { |
433 | 432 |
|
434 | 433 | handler := DeleteFolderTelemetryLinkWaitHandler(context.Background(), apiClient, "pid", "eu01") |
435 | 434 |
|
436 | | - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) |
| 435 | + gotRes, err := handler.WaitWithContext(context.Background()) |
437 | 436 |
|
438 | 437 | if (err != nil) != tt.wantErr { |
439 | 438 | t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) |
@@ -496,7 +495,7 @@ func TestCreateOrUpdateProjectTelemetryLinkWaitHandler(t *testing.T) { |
496 | 495 |
|
497 | 496 | handler := CreateOrUpdateProjectTelemetryLinkWaitHandler(context.Background(), apiClient, "pid", "eu01") |
498 | 497 |
|
499 | | - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) |
| 498 | + gotRes, err := handler.WaitWithContext(context.Background()) |
500 | 499 |
|
501 | 500 | if (err != nil) != tt.wantErr { |
502 | 501 | t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) |
@@ -556,7 +555,7 @@ func TestPartialUpdateProjectTelemetryLinkWaitHandler(t *testing.T) { |
556 | 555 |
|
557 | 556 | handler := PartialUpdateProjectTelemetryLinkWaitHandler(context.Background(), apiClient, "pid", "eu01") |
558 | 557 |
|
559 | | - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) |
| 558 | + gotRes, err := handler.WaitWithContext(context.Background()) |
560 | 559 |
|
561 | 560 | if (err != nil) != tt.wantErr { |
562 | 561 | t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) |
@@ -620,7 +619,7 @@ func TestDeleteProjectTelemetryLinkWaitHandler(t *testing.T) { |
620 | 619 |
|
621 | 620 | handler := DeleteProjectTelemetryLinkWaitHandler(context.Background(), apiClient, "pid", "eu01") |
622 | 621 |
|
623 | | - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) |
| 622 | + gotRes, err := handler.WaitWithContext(context.Background()) |
624 | 623 |
|
625 | 624 | if (err != nil) != tt.wantErr { |
626 | 625 | t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) |
|
0 commit comments