Fixed naming
This commit is contained in:
@@ -36,6 +36,7 @@ func runTestServer() *httptest.Server {
|
|||||||
func TestSaveDeviceInfofunc(t *testing.T) {
|
func TestSaveDeviceInfofunc(t *testing.T) {
|
||||||
ts := runTestServer()
|
ts := runTestServer()
|
||||||
defer ts.Close()
|
defer ts.Close()
|
||||||
|
defer shared.CloseDb()
|
||||||
|
|
||||||
t.Run("it should return 400 when JSON payload is invalid", func(t *testing.T) {
|
t.Run("it should return 400 when JSON payload is invalid", func(t *testing.T) {
|
||||||
payload := []byte(`{"InvalidPayload": `)
|
payload := []byte(`{"InvalidPayload": `)
|
||||||
Reference in New Issue
Block a user