Port more legacy stubs to the new ask stubber

This commit is contained in:
Mislav Marohnić 2022-01-14 19:34:15 +01:00
parent a33b5a55c4
commit e43cb2b880
14 changed files with 80 additions and 147 deletions

View file

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