fix schema merge test requiring non-nil cliCtx

This commit is contained in:
Stephanie You
2023-06-15 17:17:08 -07:00
parent 6e4726fded
commit a803adbc9a
@@ -562,6 +562,8 @@ func testMergeSchemas(t *testing.T, test mergeSchemaTest) {
defer dEnv.DoltDB.Close()
ctx := context.Background()
cliCtx, _ := commands.NewArgFreeCliContext(ctx, dEnv)
for _, c := range setupCommon {
exit := c.exec(t, ctx, dEnv)
require.Equal(t, 0, exit)
@@ -576,7 +578,7 @@ func testMergeSchemas(t *testing.T, test mergeSchemaTest) {
require.Equal(t, 0, exitCode)
// merge branches
exitCode = commands.MergeCmd{}.Exec(ctx, "merge", []string{"other"}, dEnv, nil)
exitCode = commands.MergeCmd{}.Exec(ctx, "merge", []string{"other"}, dEnv, cliCtx)
assert.Equal(t, 0, exitCode)
wr, err := dEnv.WorkingRoot(ctx)