use t.Cleanup(m.Verify)

This commit is contained in:
Nate Smith 2023-03-09 16:43:48 -08:00
parent 10dd74b4af
commit aae4023cdc
3 changed files with 2 additions and 2 deletions

View file

@ -99,6 +99,8 @@ func NewMockPrompter(t *testing.T) *MockPrompter {
ConfirmDeletionStubs: []ConfirmDeletionStub{},
}
t.Cleanup(m.Verify)
m.SelectFunc = func(p, d string, opts []string) (int, error) {
var s SelectStub