good morning!!!!

Skip to content
Snippets Groups Projects
Commit 94e8fb27 authored by Carlos Nieto's avatar Carlos Nieto
Browse files

Fixing tests for serials not starting in 1 after truncating. Also fixing benchmarks.

parent 0d9a8572
No related branches found
No related tags found
No related merge requests found
......@@ -467,8 +467,8 @@ func TestUpdate(t *testing.T) {
Name string
}{}
// Getting the artist with id = 1.
res, err := artist.Filter(db.Cond{"id": 1})
// Getting the first artist.
res, err := artist.Filter(db.Cond{"id !=": 0}, db.Limit(1))
if err != nil {
t.Fatalf(err.Error())
......@@ -658,7 +658,7 @@ func BenchmarkAppendRaw(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
_, err := driver.Exec(`INSERT INTO artist (name) VALUES("Hayao Miyazaki")`)
_, err := driver.Exec(`INSERT INTO artist (name) VALUES('Hayao Miyazaki')`)
if err != nil {
b.Fatalf(err.Error())
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment