Merge pull request #18334 from hashicorp/kristin/b-test-err

cli: fix tests
This commit is contained in:
Kristin Laemmert 2018-06-26 12:42:19 -07:00 committed by GitHub
commit a914ee3371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -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,
},
}