From 2845896fc9887df579e8e14e31306ba6ca3afb7d Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Tue, 10 Dec 2019 07:33:22 -0800 Subject: [PATCH] backend/remote-state/http: drop unused assertError() --- backend/remote-state/http/client_test.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/backend/remote-state/http/client_test.go b/backend/remote-state/http/client_test.go index 7b6f04e62..d9b661ce8 100644 --- a/backend/remote-state/http/client_test.go +++ b/backend/remote-state/http/client_test.go @@ -87,14 +87,6 @@ func TestHTTPClient(t *testing.T) { remote.TestClient(t, client) } -func assertError(t *testing.T, err error, expected string) { - if err == nil { - t.Fatalf("Expected empty config to err") - } else if err.Error() != expected { - t.Fatalf("Expected err.Error() to be \"%s\", got \"%s\"", expected, err.Error()) - } -} - type testHTTPHandler struct { Data []byte Locked bool