Fixed integration test

This commit is contained in:
root
2021-02-03 16:52:19 +02:00
committed by Dan Christian Bogos
parent 1f312e098c
commit e209096a98

View File

@@ -84,8 +84,8 @@ func TestHTTPAgentReload(t *testing.T) {
t.Errorf("\nExpecting <%+v>,\n Received <%+v>", utils.ErrServiceAlreadyRunning, err)
}
err = srv.Shutdown()
if err != utils.ErrServiceAlreadyRunning {
t.Errorf("\nExpecting <%+v>,\n Received <%+v>", utils.ErrServiceAlreadyRunning, err)
if err != nil {
t.Errorf("\nExpecting <%+v>,\n Received <%+v>", nil, err)
}
if srv.IsRunning() {
t.Errorf("Expected service to be down")