From 77ffb4a0eb6786f70040e4c45d6b02e005e3b672 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Tue, 10 Dec 2019 07:36:54 -0800 Subject: [PATCH] backend/remote-state/http: fix dropped test errors --- backend/remote-state/http/client_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/remote-state/http/client_test.go b/backend/remote-state/http/client_test.go index d9b661ce8a..c05be20982 100644 --- a/backend/remote-state/http/client_test.go +++ b/backend/remote-state/http/client_test.go @@ -26,7 +26,7 @@ func TestHTTPClient(t *testing.T) { url, err := url.Parse(ts.URL) if err != nil { - t.Fatalf("err: %s", err) + t.Fatalf("Parse: %s", err) } // Test basic get/update @@ -73,6 +73,10 @@ func TestHTTPClient(t *testing.T) { UpdateMethod: "PUT", Client: retryablehttp.NewClient(), } + if err != nil { + t.Fatalf("Parse: %s", err) + } + remote.TestClient(t, client) // first time through: 201 remote.TestClient(t, client) // second time, with identical data: 204 @@ -83,6 +87,9 @@ func TestHTTPClient(t *testing.T) { defer ts.Close() url, err = url.Parse(ts.URL) + if err != nil { + t.Fatalf("Parse: %s", err) + } client = &httpClient{URL: url, Client: retryablehttp.NewClient()} remote.TestClient(t, client) }