lint: more test warns

This commit is contained in:
Umputun
2019-06-25 20:06:30 -05:00
parent f6e69e86bb
commit 06bac880cb
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -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)
}
@@ -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) {