From 438503852d2a9db58a825b661ee7969284642cab Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Thu, 21 Jul 2022 23:41:33 +0800 Subject: [PATCH] blob: fix minor unreachable code in test caused by t.Fatalf Signed-off-by: Abirdcfly --- blob/drivertest/drivertest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blob/drivertest/drivertest.go b/blob/drivertest/drivertest.go index e501e21691..697530be67 100644 --- a/blob/drivertest/drivertest.go +++ b/blob/drivertest/drivertest.go @@ -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) } } }