use t.Cleanup(m.Verify)
This commit is contained in:
parent
10dd74b4af
commit
aae4023cdc
3 changed files with 2 additions and 2 deletions
|
|
@ -1429,7 +1429,6 @@ func Test_createRun_interactive(t *testing.T) {
|
|||
tt.prompterStubs(t, pm)
|
||||
}
|
||||
tt.opts.Prompter = pm
|
||||
defer pm.Verify()
|
||||
|
||||
rs, teardown := run.Stub()
|
||||
defer teardown(t)
|
||||
|
|
|
|||
|
|
@ -221,7 +221,6 @@ func TestRenameRun(t *testing.T) {
|
|||
for _, tt := range testCases {
|
||||
pm := prompter.NewMockPrompter(t)
|
||||
tt.opts.Prompter = pm
|
||||
defer pm.Verify()
|
||||
if tt.promptStubs != nil {
|
||||
tt.promptStubs(pm)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue