lint: more test warns
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user