@@ -102,7 +102,7 @@ func TestLocPollerSimple(t *testing.T) {
102
102
}
103
103
var respFromCtx * http.Response
104
104
ctxWithResp := WithCaptureResponse (context .Background (), & respFromCtx )
105
- _ , err = lro .PollUntilDone (ctxWithResp , & PollUntilDoneOptions {Frequency : time .Second })
105
+ _ , err = lro .PollUntilDone (ctxWithResp , & PollUntilDoneOptions {Frequency : time .Millisecond })
106
106
if err != nil {
107
107
t .Fatal (err )
108
108
}
@@ -135,7 +135,7 @@ func TestLocPollerWithWidget(t *testing.T) {
135
135
if ! closed () {
136
136
t .Fatal ("initial response body wasn't closed" )
137
137
}
138
- w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
138
+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
139
139
if err != nil {
140
140
t .Fatal (err )
141
141
}
@@ -168,7 +168,7 @@ func TestLocPollerCancelled(t *testing.T) {
168
168
if ! closed () {
169
169
t .Fatal ("initial response body wasn't closed" )
170
170
}
171
- w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
171
+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
172
172
if err == nil {
173
173
t .Fatal ("unexpected nil error" )
174
174
}
@@ -214,7 +214,7 @@ func TestLocPollerWithError(t *testing.T) {
214
214
if ! closed () {
215
215
t .Fatal ("initial response body wasn't closed" )
216
216
}
217
- w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
217
+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
218
218
if err == nil {
219
219
t .Fatal ("unexpected nil error" )
220
220
}
@@ -272,7 +272,7 @@ func TestLocPollerWithResumeToken(t *testing.T) {
272
272
if err != nil {
273
273
t .Fatal (err )
274
274
}
275
- _ , err = lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
275
+ _ , err = lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
276
276
if err != nil {
277
277
t .Fatal (err )
278
278
}
@@ -302,7 +302,7 @@ func TestLocPollerWithTimeout(t *testing.T) {
302
302
t .Fatal ("initial response body wasn't closed" )
303
303
}
304
304
ctx , cancel := context .WithTimeout (context .Background (), 2 * time .Second )
305
- _ , err = lro .PollUntilDone (ctx , & PollUntilDoneOptions {Frequency : time .Second })
305
+ _ , err = lro .PollUntilDone (ctx , & PollUntilDoneOptions {Frequency : time .Millisecond })
306
306
cancel ()
307
307
if err == nil {
308
308
t .Fatal ("unexpected nil error" )
@@ -341,7 +341,7 @@ func TestOpPollerSimple(t *testing.T) {
341
341
if ! closed () {
342
342
t .Fatal ("initial response body wasn't closed" )
343
343
}
344
- _ , err = lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
344
+ _ , err = lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
345
345
if err != nil {
346
346
t .Fatal (err )
347
347
}
@@ -381,7 +381,7 @@ func TestOpPollerWithWidgetPUT(t *testing.T) {
381
381
if ! closed () {
382
382
t .Fatal ("initial response body wasn't closed" )
383
383
}
384
- w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
384
+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
385
385
if err != nil {
386
386
t .Fatal (err )
387
387
}
@@ -487,7 +487,7 @@ func TestOpPollerWithWidgetPOSTLocation(t *testing.T) {
487
487
if ! closed () {
488
488
t .Fatal ("initial response body wasn't closed" )
489
489
}
490
- w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
490
+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
491
491
if err != nil {
492
492
t .Fatal (err )
493
493
}
@@ -529,7 +529,7 @@ func TestOpPollerWithWidgetPOST(t *testing.T) {
529
529
if ! closed () {
530
530
t .Fatal ("initial response body wasn't closed" )
531
531
}
532
- w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
532
+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
533
533
if err != nil {
534
534
t .Fatal (err )
535
535
}
@@ -574,7 +574,7 @@ func TestOpPollerWithWidgetResourceLocation(t *testing.T) {
574
574
if ! closed () {
575
575
t .Fatal ("initial response body wasn't closed" )
576
576
}
577
- w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
577
+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
578
578
if err != nil {
579
579
t .Fatal (err )
580
580
}
@@ -637,7 +637,7 @@ func TestOpPollerWithResumeToken(t *testing.T) {
637
637
if err != nil {
638
638
t .Fatal (err )
639
639
}
640
- _ , err = lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
640
+ _ , err = lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
641
641
if err != nil {
642
642
t .Fatal (err )
643
643
}
@@ -678,7 +678,7 @@ func TestNopPoller(t *testing.T) {
678
678
if resp != firstResp {
679
679
t .Fatal ("unexpected response" )
680
680
}
681
- _ , err = lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
681
+ _ , err = lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
682
682
if err != nil {
683
683
t .Fatal (err )
684
684
}
@@ -734,7 +734,7 @@ func TestOpPollerWithResponseType(t *testing.T) {
734
734
if ! closed () {
735
735
t .Fatal ("initial response body wasn't closed" )
736
736
}
737
- w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
737
+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
738
738
if err != nil {
739
739
t .Fatal (err )
740
740
}
@@ -816,7 +816,7 @@ func TestNewPollerAsync(t *testing.T) {
816
816
if err != nil {
817
817
t .Fatal (err )
818
818
}
819
- result , err := poller .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
819
+ result , err := poller .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
820
820
if err != nil {
821
821
t .Fatal (err )
822
822
}
@@ -858,7 +858,7 @@ func TestNewPollerBody(t *testing.T) {
858
858
if err != nil {
859
859
t .Fatal (err )
860
860
}
861
- result , err := poller .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
861
+ result , err := poller .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
862
862
if err != nil {
863
863
t .Fatal (err )
864
864
}
@@ -888,7 +888,7 @@ func TestNewPollerInitialRetryAfter(t *testing.T) {
888
888
if pt := typeOfOpField (poller ); pt != reflect .TypeOf ((* async.Poller [mockType ])(nil )) {
889
889
t .Fatalf ("unexpected poller type %s" , pt .String ())
890
890
}
891
- result , err := poller .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
891
+ result , err := poller .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
892
892
if err != nil {
893
893
t .Fatal (err )
894
894
}
@@ -955,7 +955,7 @@ func TestNewPollerFailedWithError(t *testing.T) {
955
955
if pt := typeOfOpField (poller ); pt != reflect .TypeOf ((* async.Poller [mockType ])(nil )) {
956
956
t .Fatalf ("unexpected poller type %s" , pt .String ())
957
957
}
958
- _ , err = poller .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
958
+ _ , err = poller .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
959
959
if err == nil {
960
960
t .Fatal (err )
961
961
}
@@ -987,7 +987,7 @@ func TestNewPollerSuccessNoContent(t *testing.T) {
987
987
if err != nil {
988
988
t .Fatal (err )
989
989
}
990
- result , err := poller .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
990
+ result , err := poller .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
991
991
if err != nil {
992
992
t .Fatal (err )
993
993
}
@@ -1049,7 +1049,7 @@ func TestNewPollerWithResponseType(t *testing.T) {
1049
1049
if err != nil {
1050
1050
t .Fatal (err )
1051
1051
}
1052
- result , err := poller .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Second })
1052
+ result , err := poller .PollUntilDone (context .Background (), & PollUntilDoneOptions {Frequency : time .Millisecond })
1053
1053
if err != nil {
1054
1054
t .Fatal (err )
1055
1055
}
0 commit comments