Skip to content

Commit

Permalink
Use per migration disable-tx in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jackc committed May 10, 2022
1 parent b23e02f commit 7e11b06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrate/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,11 @@ func TestMigrateToDisableTxInMigration(t *testing.T) {
conn := connectConn(t)
defer conn.Close(context.Background())

m, err := migrate.NewMigratorEx(context.Background(), conn, versionTable, &migrate.MigratorOptions{DisableTx: true})
m, err := migrate.NewMigratorEx(context.Background(), conn, versionTable, &migrate.MigratorOptions{})
assert.NoError(t, err)
m.AppendMigration(
"Create t1",
`---- disable-tx ----
`---- tern: disable-tx ----
create table t1(id serial);
syntax error;`,
``)
Expand Down

0 comments on commit 7e11b06

Please sign in to comment.