@@ -96,7 +96,7 @@ func TestLocPollerSimple(t *testing.T) {
9696 }
9797 var respFromCtx * http.Response
9898 ctxWithResp := WithCaptureResponse (context .Background (), & respFromCtx )
99- _ , err = lro .PollUntilDone (ctxWithResp , time .Second )
99+ _ , err = lro .PollUntilDone (ctxWithResp , & PollUntilDoneOptions { Frequency : time .Second } )
100100 if err != nil {
101101 t .Fatal (err )
102102 }
@@ -129,7 +129,7 @@ func TestLocPollerWithWidget(t *testing.T) {
129129 if ! closed () {
130130 t .Fatal ("initial response body wasn't closed" )
131131 }
132- w , err := lro .PollUntilDone (context .Background (), time .Second )
132+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions { Frequency : time .Second } )
133133 if err != nil {
134134 t .Fatal (err )
135135 }
@@ -162,7 +162,7 @@ func TestLocPollerCancelled(t *testing.T) {
162162 if ! closed () {
163163 t .Fatal ("initial response body wasn't closed" )
164164 }
165- w , err := lro .PollUntilDone (context .Background (), time .Second )
165+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions { Frequency : time .Second } )
166166 if err == nil {
167167 t .Fatal ("unexpected nil error" )
168168 }
@@ -198,7 +198,7 @@ func TestLocPollerWithError(t *testing.T) {
198198 if ! closed () {
199199 t .Fatal ("initial response body wasn't closed" )
200200 }
201- w , err := lro .PollUntilDone (context .Background (), time .Second )
201+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions { Frequency : time .Second } )
202202 if err == nil {
203203 t .Fatal ("unexpected nil error" )
204204 }
@@ -256,7 +256,7 @@ func TestLocPollerWithResumeToken(t *testing.T) {
256256 if err != nil {
257257 t .Fatal (err )
258258 }
259- _ , err = lro .PollUntilDone (context .Background (), time .Second )
259+ _ , err = lro .PollUntilDone (context .Background (), & PollUntilDoneOptions { Frequency : time .Second } )
260260 if err != nil {
261261 t .Fatal (err )
262262 }
@@ -286,7 +286,7 @@ func TestLocPollerWithTimeout(t *testing.T) {
286286 t .Fatal ("initial response body wasn't closed" )
287287 }
288288 ctx , cancel := context .WithTimeout (context .Background (), 2 * time .Second )
289- _ , err = lro .PollUntilDone (ctx , time .Second )
289+ _ , err = lro .PollUntilDone (ctx , & PollUntilDoneOptions { Frequency : time .Second } )
290290 cancel ()
291291 if err == nil {
292292 t .Fatal ("unexpected nil error" )
@@ -325,7 +325,7 @@ func TestOpPollerSimple(t *testing.T) {
325325 if ! closed () {
326326 t .Fatal ("initial response body wasn't closed" )
327327 }
328- _ , err = lro .PollUntilDone (context .Background (), time .Second )
328+ _ , err = lro .PollUntilDone (context .Background (), & PollUntilDoneOptions { Frequency : time .Second } )
329329 if err != nil {
330330 t .Fatal (err )
331331 }
@@ -365,7 +365,7 @@ func TestOpPollerWithWidgetPUT(t *testing.T) {
365365 if ! closed () {
366366 t .Fatal ("initial response body wasn't closed" )
367367 }
368- w , err := lro .PollUntilDone (context .Background (), time .Second )
368+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions { Frequency : time .Second } )
369369 if err != nil {
370370 t .Fatal (err )
371371 }
@@ -409,7 +409,7 @@ func TestOpPollerWithWidgetPOSTLocation(t *testing.T) {
409409 if ! closed () {
410410 t .Fatal ("initial response body wasn't closed" )
411411 }
412- w , err := lro .PollUntilDone (context .Background (), time .Second )
412+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions { Frequency : time .Second } )
413413 if err != nil {
414414 t .Fatal (err )
415415 }
@@ -451,7 +451,7 @@ func TestOpPollerWithWidgetPOST(t *testing.T) {
451451 if ! closed () {
452452 t .Fatal ("initial response body wasn't closed" )
453453 }
454- w , err := lro .PollUntilDone (context .Background (), time .Second )
454+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions { Frequency : time .Second } )
455455 if err != nil {
456456 t .Fatal (err )
457457 }
@@ -496,7 +496,7 @@ func TestOpPollerWithWidgetResourceLocation(t *testing.T) {
496496 if ! closed () {
497497 t .Fatal ("initial response body wasn't closed" )
498498 }
499- w , err := lro .PollUntilDone (context .Background (), time .Second )
499+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions { Frequency : time .Second } )
500500 if err != nil {
501501 t .Fatal (err )
502502 }
@@ -559,7 +559,7 @@ func TestOpPollerWithResumeToken(t *testing.T) {
559559 if err != nil {
560560 t .Fatal (err )
561561 }
562- _ , err = lro .PollUntilDone (context .Background (), time .Second )
562+ _ , err = lro .PollUntilDone (context .Background (), & PollUntilDoneOptions { Frequency : time .Second } )
563563 if err != nil {
564564 t .Fatal (err )
565565 }
@@ -592,7 +592,7 @@ func TestNopPoller(t *testing.T) {
592592 if resp != firstResp {
593593 t .Fatal ("unexpected response" )
594594 }
595- _ , err = lro .PollUntilDone (context .Background (), time .Second )
595+ _ , err = lro .PollUntilDone (context .Background (), & PollUntilDoneOptions { Frequency : time .Second } )
596596 if err != nil {
597597 t .Fatal (err )
598598 }
@@ -648,7 +648,7 @@ func TestOpPollerWithResponseType(t *testing.T) {
648648 if ! closed () {
649649 t .Fatal ("initial response body wasn't closed" )
650650 }
651- w , err := lro .PollUntilDone (context .Background (), time .Second )
651+ w , err := lro .PollUntilDone (context .Background (), & PollUntilDoneOptions { Frequency : time .Second } )
652652 if err != nil {
653653 t .Fatal (err )
654654 }
0 commit comments