1
0

Fixed TestSqliteEditEntry test.

This commit is contained in:
Alexander Andreev 2023-05-09 23:30:18 +04:00
parent 1d6a05d15c
commit cb623e8087
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -83,13 +83,17 @@ func TestSqliteEditEntry(t *testing.T) {
me := es0[0] me := es0[0]
me.ID = es0[0].ID
me.Name = "NotSoAnonymous" me.Name = "NotSoAnonymous"
err = db.EditEntry(me) err = db.EditEntry(me)
if err != nil { if err != nil {
t.Error(err) t.Error(err)
} }
es0, err = db.Entries(1, 30)
if es0[0].Name != me.Name {
t.Error("name wasn't changed", es0[0].Name, "!=", me.Name, es0[0].ID, me.ID)
}
} }
func TestSqliteEditReply(t *testing.T) { func TestSqliteEditReply(t *testing.T) {