From f2e5ad6dcd9a692fe97badd0b3485f1177a7592e Mon Sep 17 00:00:00 2001 From: Nate Smith Date: Wed, 16 Aug 2023 21:26:37 -0500 Subject: [PATCH] fix RegisterPassword --- internal/prompter/test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/prompter/test.go b/internal/prompter/test.go index c376e9c83..0dea18e5a 100644 --- a/internal/prompter/test.go +++ b/internal/prompter/test.go @@ -258,7 +258,7 @@ func (m *MockPrompter) RegisterInputHostname(stub func() (string, error)) { } func (m *MockPrompter) RegisterPassword(prompt string, stub func(string) (string, error)) { - m.PasswordStubs = append(m.PasswordStubs, PasswordStub{Fn: stub}) + m.PasswordStubs = append(m.PasswordStubs, PasswordStub{Prompt: prompt, Fn: stub}) } func (m *MockPrompter) RegisterConfirmDeletion(prompt string, stub func(string) error) {