Fix tests with a proper start-up and shutdown procedure with a sync
This commit is contained in:
parent
179dd3f984
commit
d104c90445
4 changed files with 30 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue