Skip to content

Commit

Permalink
Fix some testing issues
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Cormack <[email protected]>
  • Loading branch information
justincormack committed Apr 2, 2020
1 parent ab558ed commit 645fcf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/httpstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ func TestNetworkError(t *testing.T) {
Err: errors.New("abc%3Adef%3Aghi"),
}
networkErr := NetworkError{Wrapped: err}
require.Equal(t, http.MethodGet+" https://auth.docker.io: abc:def:ghi", networkErr.Error())
require.Equal(t, http.MethodGet+" \"https://auth.docker.io\": abc:def:ghi", networkErr.Error())

// expect QueryUnescape error because the last '%' is not
// followed by two hexadecimal digits
Expand All @@ -403,7 +403,7 @@ func TestNetworkError(t *testing.T) {
Err: errors.New("abc%3Adef%GAghi"),
}
networkErr2 := NetworkError{Wrapped: err2}
require.Equal(t, http.MethodGet+" https://auth.docker.io: abc%3Adef%GAghi", networkErr2.Error())
require.Equal(t, http.MethodGet+" \"https://auth.docker.io\": abc%3Adef%GAghi", networkErr2.Error())

err3 := errors.New("CPU usage 90%3A")
networkErr3 := NetworkError{Wrapped: err3}
Expand Down

0 comments on commit 645fcf3

Please sign in to comment.