Skip to content

Commit a097294

Browse files
committed
apply linting fixes
1 parent 85124dd commit a097294

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ func TestClient_Do_WithPrepareRetry(t *testing.T) {
468468
if prepareChecks != tt.expectedPrepareChecks {
469469
t.Fatalf("expected %d attempts of prepare check, got %d attempts", tt.expectedPrepareChecks, prepareChecks)
470470
}
471-
header := req.Request.Header.Get("foo")
471+
header := req.Header.Get("foo")
472472
if tt.expectedPrepareChecks == 0 && header != "" {
473473
t.Fatalf("expected no changes to request header 'foo', but got '%s'", header)
474474
}
@@ -746,7 +746,7 @@ func TestClient_RequestWithContext(t *testing.T) {
746746
if err != nil {
747747
t.Fatalf("err: %v", err)
748748
}
749-
ctx, cancel := context.WithCancel(req.Request.Context())
749+
ctx, cancel := context.WithCancel(req.Context())
750750
reqCtx := req.WithContext(ctx)
751751
if reqCtx == req {
752752
t.Fatal("WithContext must return a new Request object")
@@ -757,7 +757,7 @@ func TestClient_RequestWithContext(t *testing.T) {
757757
called := 0
758758
client.CheckRetry = func(_ context.Context, resp *http.Response, err error) (bool, error) {
759759
called++
760-
return DefaultRetryPolicy(reqCtx.Request.Context(), resp, err)
760+
return DefaultRetryPolicy(reqCtx.Context(), resp, err)
761761
}
762762

763763
cancel()

0 commit comments

Comments
 (0)