Skip to content

Commit

Permalink
Make travis happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
志宇 committed Mar 3, 2020
1 parent 0e696f0 commit b16defe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/transport-discovery/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) },
Expand All @@ -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")
},
},
Expand All @@ -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")
},
},
{
Expand Down

0 comments on commit b16defe

Please sign in to comment.