@@ -497,19 +497,19 @@ func TestClient_Do_fails(t *testing.T) {
497
497
url : ts .URL ,
498
498
name : "default_retry_policy" ,
499
499
cr : DefaultRetryPolicy ,
500
- err : "giving up after 3 attempt(s)" ,
500
+ err : "giving up after 3 attempt(s) [last statusCode: 500] " ,
501
501
},
502
502
{
503
503
url : serverUrlWithBasicAuth .String (),
504
504
name : "default_retry_policy_url_with_basic_auth" ,
505
505
cr : DefaultRetryPolicy ,
506
- err : redactURL (serverUrlWithBasicAuth ) + " giving up after 3 attempt(s)" ,
506
+ err : redactURL (serverUrlWithBasicAuth ) + " giving up after 3 attempt(s) [last statusCode: 500] " ,
507
507
},
508
508
{
509
509
url : ts .URL ,
510
510
name : "error_propagated_retry_policy" ,
511
511
cr : ErrorPropagatedRetryPolicy ,
512
- err : "giving up after 3 attempt(s): unexpected HTTP status 500 Internal Server Error" ,
512
+ err : "giving up after 3 attempt(s) [last statusCode: 500] : unexpected HTTP status 500 Internal Server Error" ,
513
513
},
514
514
}
515
515
@@ -787,7 +787,7 @@ func TestClient_CheckRetry(t *testing.T) {
787
787
t .Fatalf ("CheckRetry called %d times, expected 1" , called )
788
788
}
789
789
790
- if err .Error () != fmt .Sprintf ("GET %s giving up after 2 attempt(s): retryError" , ts .URL ) {
790
+ if err .Error () != fmt .Sprintf ("GET %s giving up after 2 attempt(s) [last statusCode: 500] : retryError" , ts .URL ) {
791
791
t .Fatalf ("Expected retryError, got:%v" , err )
792
792
}
793
793
}
0 commit comments