Skip to content

Commit

Permalink
lint: Fix typo in sql request in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed Sep 14, 2024
1 parent a2e4d9a commit 267a72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pkg/dbx/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestMigrate_SuccessWithPastMigration(t *testing.T) {
err = trx.Scalar(&version, "SELECT version FROM migrations_history WHERE version = '209901010000' LIMIT 1")

Check failure on line 54 in app/pkg/dbx/migrate_test.go

View workflow job for this annotation

GitHub Actions / test-server (x86_64)

ineffectual assignment to err (ineffassign)

Check failure on line 54 in app/pkg/dbx/migrate_test.go

View workflow job for this annotation

GitHub Actions / test-server (arm64)

ineffectual assignment to err (ineffassign)
Expect(version).Equals("209901010000")
var count int
err = trx.Scalar(&count, "SELECT COUNT(*) FROM migrations_history where VERSION IN (209901010000,210001010002)")
err = trx.Scalar(&count, "SELECT COUNT(*) FROM migrations_history WHERE version IN (209901010000,210001010002)")
Expect(err).IsNil()
Expect(count).Equals(2)
trx.MustRollback()
Expand Down

0 comments on commit 267a72b

Please sign in to comment.