Skip to content

Commit

Permalink
test: Check error while fetching versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentinchampenois committed Sep 14, 2024
1 parent 267a72b commit fbff697
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/pkg/dbx/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ func TestMigrate_SuccessWithPastMigration(t *testing.T) {
trx, _ := dbx.BeginTx(ctx)
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)")
Expand Down

0 comments on commit fbff697

Please sign in to comment.