Skip to content

Commit

Permalink
blob: fix minor unreachable code in test caused by t.Fatalf
Browse files Browse the repository at this point in the history
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
  • Loading branch information
Abirdcfly committed Jul 21, 2022
1 parent 5d4575a commit 4385038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blob/drivertest/drivertest.go
Original file line number Diff line number Diff line change
Expand Up @@ -2433,9 +2433,9 @@ func testSignedURL(t *testing.T, newHarness HarnessMaker) {
defer resp.Body.Close()
success := resp.StatusCode >= 200 && resp.StatusCode < 300
if success != test.wantSuccess {
t.Fatalf("DELETE to %q got status code %d, want 2xx? %v", test.urlDescription, resp.StatusCode, test.wantSuccess)
gotBody, _ := ioutil.ReadAll(resp.Body)
t.Errorf(string(gotBody))
t.Fatalf("DELETE to %q got status code %d, want 2xx? %v", test.urlDescription, resp.StatusCode, test.wantSuccess)
}
}
}
Expand Down

0 comments on commit 4385038

Please sign in to comment.