Skip to content

Commit

Permalink
lint: Light refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed Sep 14, 2024
1 parent fbff697 commit 9486347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/pkg/dbx/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ func TestMigrate_SuccessWithPastMigration(t *testing.T) {
var version string
err = trx.Scalar(&version, "SELECT version FROM migrations_history WHERE version = '209901010000' LIMIT 1")
Expect(err).IsNil()

Expect(version).Equals("209901010000")

var count int
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 9486347

Please sign in to comment.