From 33877bd57949f3dba9cfc6df0ad6db67d615e4e3 Mon Sep 17 00:00:00 2001 From: Kristin Laemmert Date: Tue, 26 Jun 2018 11:57:52 -0700 Subject: [PATCH] cli: update tests --- command/output_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/command/output_test.go b/command/output_test.go index 5b6304e16..85ed3f882 100644 --- a/command/output_test.go +++ b/command/output_test.go @@ -247,11 +247,12 @@ func TestOutput_emptyOutputsErr(t *testing.T) { statePath := testStateFile(t, originalState) + p := testProvider() ui := new(cli.MockUi) c := &OutputCommand{ Meta: Meta{ - ContextOpts: testCtxConfig(testProvider()), - Ui: ui, + testingOverrides: metaOverridesForProvider(p), + Ui: ui, }, } @@ -275,11 +276,12 @@ func TestOutput_jsonEmptyOutputs(t *testing.T) { statePath := testStateFile(t, originalState) + p := testProvider() ui := new(cli.MockUi) c := &OutputCommand{ Meta: Meta{ - ContextOpts: testCtxConfig(testProvider()), - Ui: ui, + testingOverrides: metaOverridesForProvider(p), + Ui: ui, }, }