Fix failing test TestHTTP_AllocAllGC
This commit is contained in:
parent
911921bd0a
commit
2752204f26
|
@ -697,7 +697,7 @@ func TestHTTP_AllocAllGC(t *testing.T) {
|
||||||
s.server = srv
|
s.server = srv
|
||||||
}
|
}
|
||||||
|
|
||||||
// no client, server resp
|
// client GC from server, should not error
|
||||||
{
|
{
|
||||||
c := s.client
|
c := s.client
|
||||||
s.client = nil
|
s.client = nil
|
||||||
|
@ -717,10 +717,7 @@ func TestHTTP_AllocAllGC(t *testing.T) {
|
||||||
|
|
||||||
respW := httptest.NewRecorder()
|
respW := httptest.NewRecorder()
|
||||||
_, err = s.Server.ClientGCRequest(respW, req)
|
_, err = s.Server.ClientGCRequest(respW, req)
|
||||||
require.NotNil(err)
|
require.Nil(err)
|
||||||
|
|
||||||
// The dev agent uses in-mem RPC so just assert the no route error
|
|
||||||
require.Contains(err.Error(), structs.ErrNoNodeConn.Error())
|
|
||||||
|
|
||||||
s.client = c
|
s.client = c
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue