Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Remove unused resp values. #66

Merged
merged 1 commit into from
Apr 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions httpcache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ func TestStaleIfErrorRequestLifetime(t *testing.T) {

// If failure last more than max stale, error is returned
clock = &fakeClock{elapsed: 200 * time.Second}
resp, err = tp.RoundTrip(r)
_, err = tp.RoundTrip(r)
if err != tmock.err {
t.Fatalf("got err %v, want %v", err, tmock.err)
}
Expand Down Expand Up @@ -1206,7 +1206,7 @@ func TestStaleIfErrorResponseLifetime(t *testing.T) {

// If failure last more than max stale, error is returned
clock = &fakeClock{elapsed: 200 * time.Second}
resp, err = tp.RoundTrip(r)
_, err = tp.RoundTrip(r)
if err != tmock.err {
t.Fatalf("got err %v, want %v", err, tmock.err)
}
Expand Down