diff --git a/backend/app/remote/server_test.go b/backend/app/remote/server_test.go index a2e87e87..39665bf7 100644 --- a/backend/app/remote/server_test.go +++ b/backend/app/remote/server_test.go @@ -40,7 +40,7 @@ func TestServerPrimitiveTypes(t *testing.T) { }) go func() { _ = s.Run(9091) }() - defer func() { s.Shutdown() }() + defer func() { assert.NoError(t, s.Shutdown()) }() time.Sleep(10 * time.Millisecond) // check with direct http call @@ -63,6 +63,7 @@ func TestServerPrimitiveTypes(t *testing.T) { res := respData{} err = json.Unmarshal(*r.Result, &res) + assert.NoError(t, err) assert.Equal(t, respData{Res1: "res blah", Res2: true}, res) assert.Equal(t, uint64(1), r.ID) } @@ -104,6 +105,7 @@ func TestServerWithObject(t *testing.T) { res := respData{} err = json.Unmarshal(*r.Result, &res) + assert.NoError(t, err) assert.Equal(t, respData{Res1: "res blah", Res2: true}, res) } diff --git a/backend/app/store/service/service_test.go b/backend/app/store/service/service_test.go index 8d6a4c0e..e19b659d 100644 --- a/backend/app/store/service/service_test.go +++ b/backend/app/store/service/service_test.go @@ -764,6 +764,8 @@ func TestService_UserReplies(t *testing.T) { cc, u, err = b.UserReplies("radio-t", "uxxx", 10, time.Hour) assert.NoError(t, err) assert.Equal(t, 0, len(cc), "0 replies to uxxx") + assert.Equal(t, "", u) + } func TestService_Find(t *testing.T) {