More robust testing

This commit is contained in:
2025-11-04 17:16:42 -05:00
parent 5e8b4e2b61
commit 5d579781a8
2 changed files with 24 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ func TestCreatePoll(t *testing.T) {
t.Errorf(`Failed to insert into table: %v`, err)
}
if new_poll.ID != 1 {
t.Errorf(`Failed to insert into table: Index %d: error %v`, new_poll.ID, err)
if new_poll == nil {
t.Errorf(`Failed to insert into table`)
}
}