Fix tests with a proper start-up and shutdown procedure with a sync

This commit is contained in:
Marc Di Luzio 2020-05-31 19:48:43 +01:00
parent 179dd3f984
commit d104c90445
4 changed files with 30 additions and 18 deletions

View file

@ -13,8 +13,6 @@ func TestHandleStatus(t *testing.T) {
response := httptest.NewRecorder()
s := NewServer()
s.Initialise()
s.HandleStatus(response, request)
var status StatusResponse
@ -36,8 +34,6 @@ func TestHandleRegister(t *testing.T) {
response := httptest.NewRecorder()
s := NewServer()
s.Initialise()
s.HandleRegister(response, request)
var status RegisterResponse