From 697158f1cc46acd5082cfe27b402620d47167f98 Mon Sep 17 00:00:00 2001 From: jyyi1 Date: Wed, 4 Dec 2024 19:18:24 -0500 Subject: [PATCH] remove duplicated require.Error --- client/go/outline/fetch_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/go/outline/fetch_test.go b/client/go/outline/fetch_test.go index 9e5b33c7f0..703b376a3b 100644 --- a/client/go/outline/fetch_test.go +++ b/client/go/outline/fetch_test.go @@ -81,7 +81,6 @@ func TestFetchResource_HTTPStatusError(t *testing.T) { var perr platerrors.PlatformError content, err := fetchResource(server.URL) require.Empty(t, content) - require.Error(t, err) require.ErrorAs(t, err, &perr) require.Equal(t, platerrors.FetchConfigFailed, perr.Code) require.Error(t, perr.Cause) @@ -97,7 +96,6 @@ func TestFetchResource_BodyReadError(t *testing.T) { var perr platerrors.PlatformError content, err := fetchResource(server.URL) require.Empty(t, content) - require.Error(t, err) require.ErrorAs(t, err, &perr) require.Equal(t, platerrors.FetchConfigFailed, perr.Code) require.Error(t, perr.Cause)