remove extra "yes" confirmation in tests

There were two tests that had the duplicate confirmations hard-coded in
the input stream.
This commit is contained in:
James Bardin 2017-12-18 11:13:18 -05:00
parent 7c93b2e5e6
commit 909dff36a8

View File

@ -1898,7 +1898,7 @@ func TestMetaBackend_configuredChangedLegacyCopyBackend(t *testing.T) {
defer testChdir(t, td)()
// Ask input
defer testInteractiveInput(t, []string{"yes", "yes", "no"})()
defer testInteractiveInput(t, []string{"yes", "no"})()
// Setup the meta
m := testMetaBackend(t, nil)
@ -2297,7 +2297,7 @@ func TestMetaBackend_configuredUnsetWithLegacyCopyBackend(t *testing.T) {
defer testChdir(t, td)()
// Ask input
defer testInteractiveInput(t, []string{"yes", "yes", "no"})()
defer testInteractiveInput(t, []string{"yes", "no"})()
// Setup the meta
m := testMetaBackend(t, nil)