More robust testing
This commit is contained in:
@@ -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`)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user