Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker committed Aug 1, 2024
1 parent 1daa171 commit 8638810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ func TestGORM(t *testing.T) {

mock.ExpectQuery(
regexp.QuoteMeta(
`SELECT * FROM "users" WHERE "active" = $1 AND ("id" = $2 or "name" = $3) AND "users"."deleted_at" IS NULL ORDER BY "users"."id" LIMIT 1`,
`SELECT * FROM "users" WHERE "active" = $1 AND ("id" = $2 or "name" = $3) AND "users"."deleted_at" IS NULL ORDER BY "users"."id" LIMIT $7`,
),
).WithArgs(true, id, name)
).WithArgs(true, id, name, 1)

if err := mock.ExpectationsWereMet(); err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 8638810

Please sign in to comment.