From 645fcf329b1a91076f0a8015657b264091f920b2 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Thu, 2 Apr 2020 11:24:15 +0100 Subject: [PATCH] Fix some testing issues Signed-off-by: Justin Cormack --- storage/httpstore_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/httpstore_test.go b/storage/httpstore_test.go index a3552348b..6a7f36297 100644 --- a/storage/httpstore_test.go +++ b/storage/httpstore_test.go @@ -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 @@ -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}