Skip to content

Commit

Permalink
Merge pull request #445 from alessandro-sorint/fix-testutil
Browse files Browse the repository at this point in the history
testutils/db: use schema provided by migrate data during export
  • Loading branch information
sgotti authored Oct 10, 2023
2 parents 6438214 + 1b4e220 commit 1326c5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/testutil/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,9 @@ func TestMigrate(t *testing.T, lastVersion uint, dataFixtures DataFixtures, setu

assert.Assert(t, len(diff) == 0, "schema of db created at version %d and db migrated from version %d to version %d is different:\n %s", migrateVersion, createVersion, migrateVersion, diff)

// set the db schema at the migrated version.
dc.Schema = createDataCreate.Tables

createExport := &bytes.Buffer{}
export := &bytes.Buffer{}

Expand Down

0 comments on commit 1326c5d

Please sign in to comment.