Port more legacy stubs to the new ask stubber
This commit is contained in:
parent
a33b5a55c4
commit
e43cb2b880
14 changed files with 80 additions and 147 deletions
|
|
@ -548,8 +548,7 @@ func Test_loginRun_Survey(t *testing.T) {
|
|||
hostsBuf := bytes.Buffer{}
|
||||
defer config.StubWriteConfig(&mainBuf, &hostsBuf)()
|
||||
|
||||
as, teardown := prompt.InitAskStubber()
|
||||
defer teardown()
|
||||
as := prompt.NewAskStubber(t)
|
||||
if tt.askStubs != nil {
|
||||
tt.askStubs(as)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue