Skip to content

Commit

Permalink
remove duplicated require.Error
Browse files Browse the repository at this point in the history
  • Loading branch information
jyyi1 committed Dec 5, 2024
1 parent 262aaa8 commit 697158f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions client/go/outline/fetch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 697158f

Please sign in to comment.