good morning!!!!

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

Fixing test for using non constant primary key.

parent 94e8fb27
Branches
Tags
No related merge requests found
...@@ -459,8 +459,8 @@ func TestUpdate(t *testing.T) { ...@@ -459,8 +459,8 @@ func TestUpdate(t *testing.T) {
Name string Name string
}{} }{}
// Getting the artist with id = 1. // Getting the first artist.
res, err := artist.Filter(db.Cond{"id": 1}) res, err := artist.Filter(db.Cond{"id !=": 0}, db.Limit(1))
if err != nil { if err != nil {
t.Fatalf(err.Error()) t.Fatalf(err.Error())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment