lint: lack to err checks in tests

This commit is contained in:
Umputun
2018-12-24 00:39:31 -06:00
parent b8ed722b2e
commit 2aaae35717
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -25,9 +25,9 @@ var testDb = "/tmp/test-remark.db"
func TestNative_Export(t *testing.T) {
defer os.Remove(testDb)
b := prep(t) // write 2 comments
b.SetReadOnly(store.Locator{URL: "https://radio-t.com", SiteID: "radio-t"}, true)
b.SetVerified("radio-t", "user1", true)
b.SetBlock("radio-t", "user2", true, time.Hour)
assert.NoError(t, b.SetReadOnly(store.Locator{URL: "https://radio-t.com", SiteID: "radio-t"}, true))
assert.NoError(t, b.SetVerified("radio-t", "user1", true))
assert.NoError(t, b.SetBlock("radio-t", "user2", true, time.Hour))
r := Native{DataStore: b}
buf := &bytes.Buffer{}
+1 -1
View File
@@ -223,6 +223,6 @@ func TestBoltAdmin_Verified(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, []string{"u1", "u2"}, ids, "verified 2 ids")
ids, err = b.Verified("radio-t-bad")
_, err = b.Verified("radio-t-bad")
assert.Error(t, err, "site \"radio-t-bad\" not found", "fail on wrong site")
}