From cb623e80873627c7ad3a1d138b2df0de22595bc2 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 9 May 2023 23:30:18 +0400 Subject: [PATCH] Fixed TestSqliteEditEntry test. --- database/sqlite/database_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/database/sqlite/database_test.go b/database/sqlite/database_test.go index 632087e..6fe2e39 100644 --- a/database/sqlite/database_test.go +++ b/database/sqlite/database_test.go @@ -83,13 +83,17 @@ func TestSqliteEditEntry(t *testing.T) { me := es0[0] - me.ID = es0[0].ID me.Name = "NotSoAnonymous" err = db.EditEntry(me) if err != nil { 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) {