Skip to content

Commit

Permalink
test: skip preloading in migration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Dec 2, 2020
1 parent 428df22 commit 14272f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion persistence/sql/migratest/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ func TestMigrations(t *testing.T) {
url = "mysql://" + url
}

d := driver.New(pflag.NewFlagSet("", pflag.ContinueOnError), driver.ForceConfigValue(config.KeyDSN, url))
d := driver.New(
pflag.NewFlagSet("", pflag.ContinueOnError),
driver.ForceConfigValue(config.KeyDSN, url),
driver.DisablePreloading(),
driver.DisableValidation(),
)
var dbx *sqlx.DB
require.NoError(t,
dbal.Connect(url, logrusx.New("", ""), func() error {
Expand Down

0 comments on commit 14272f2

Please sign in to comment.