Skip to content

Commit

Permalink
Fix failing test TestHTTP_AllocAllGC
Browse files Browse the repository at this point in the history
  • Loading branch information
Preetha Appan committed May 30, 2018
1 parent b1e7eda commit 6b19259
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions command/agent/alloc_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ func TestHTTP_AllocAllGC(t *testing.T) {
s.server = srv
}

// no client, server resp
// client GC from server, should not error
{
c := s.client
s.client = nil
Expand All @@ -717,10 +717,7 @@ func TestHTTP_AllocAllGC(t *testing.T) {

respW := httptest.NewRecorder()
_, err = s.Server.ClientGCRequest(respW, req)
require.NotNil(err)

// The dev agent uses in-mem RPC so just assert the no route error
require.Contains(err.Error(), structs.ErrNoNodeConn.Error())
require.Nil(err)

s.client = c
}
Expand Down

0 comments on commit 6b19259

Please sign in to comment.