mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-23 05:13:00 -05:00
More test fixes with CliContext
This commit is contained in:
@@ -173,7 +173,7 @@ func setupMigrationTest(t *testing.T, ctx context.Context, test migrationTest) *
|
||||
|
||||
cmd := commands.SqlCmd{}
|
||||
for _, query := range test.setup {
|
||||
code := cmd.Exec(ctx, cmd.Name(), []string{"-q", query}, dEnv, nil)
|
||||
code := cmd.Exec(ctx, cmd.Name(), []string{"-q", query}, dEnv, commands.BuildEmptyCliContext())
|
||||
require.Equal(t, 0, code)
|
||||
}
|
||||
return dEnv
|
||||
|
||||
@@ -129,7 +129,7 @@ func testJsonValue(t *testing.T, test jsonValueTest, setupCommon []testCommand)
|
||||
|
||||
setup := append(setupCommon, test.setup...)
|
||||
for _, c := range setup {
|
||||
exitCode := c.cmd.Exec(ctx, c.cmd.Name(), c.args, dEnv, nil)
|
||||
exitCode := c.cmd.Exec(ctx, c.cmd.Name(), c.args, dEnv, cmd.BuildEmptyCliContext())
|
||||
require.Equal(t, 0, exitCode)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user