Fixed TestSqliteEditEntry test.
This commit is contained in:
parent
1d6a05d15c
commit
cb623e8087
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user