From b16defe6994e3267d719d4d9609ca41e19da9248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E5=AE=87?= Date: Tue, 3 Mar 2020 19:07:46 +0800 Subject: [PATCH] Make travis happy. --- pkg/transport-discovery/client/client_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/transport-discovery/client/client_test.go b/pkg/transport-discovery/client/client_test.go index e847f22fe9..6670630e1b 100644 --- a/pkg/transport-discovery/client/client_test.go +++ b/pkg/transport-discovery/client/client_test.go @@ -96,7 +96,7 @@ func TestRegisterTransportResponses(t *testing.T) { func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusCreated) }, func(err error) { require.NoError(t, err) }, }, - // TODO(evaninjin): Not sure why this is failing and why this is expected behaviour. + // TODO(evaninjin): Not sure why this is failing and why this is expected behavior. //{ // "StatusOK", // func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) }, @@ -115,7 +115,7 @@ func TestRegisterTransportResponses(t *testing.T) { }, func(err error) { require.Error(t, err) - assert.Contains(t, err.Error(), "status: 500") + assert.Contains(t, err.Error(), "500") assert.Contains(t, err.Error(), "boom") }, }, @@ -128,8 +128,8 @@ func TestRegisterTransportResponses(t *testing.T) { }, func(err error) { require.Error(t, err) - assert.Contains(t, err.Error(), "status: 500") - assert.Contains(t, err.Error(), "error: boom") + assert.Contains(t, err.Error(), "500") + assert.Contains(t, err.Error(), "boom") }, }, {