From e5eedefd093afa784d5f39323be31916738d02a3 Mon Sep 17 00:00:00 2001 From: bagtoad <47394200+BagToad@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:28:44 -0700 Subject: [PATCH] Assert stderr is empty in manager_test.go --- pkg/cmd/extension/manager_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/extension/manager_test.go b/pkg/cmd/extension/manager_test.go index fd1d93f42..912a55f08 100644 --- a/pkg/cmd/extension/manager_test.go +++ b/pkg/cmd/extension/manager_test.go @@ -759,7 +759,7 @@ func TestManager_Install_local(t *testing.T) { func TestManager_Install_local_no_executable_found(t *testing.T) { tempDir := t.TempDir() - ios, _, stdout, _ := iostreams.Test() + ios, _, stdout, stderr := iostreams.Test() m := newTestManager(tempDir, nil, nil, ios) fakeExtensionName := "local-ext" @@ -773,6 +773,7 @@ func TestManager_Install_local_no_executable_found(t *testing.T) { err := m.InstallLocal(localDir) require.ErrorIs(t, err, ErrExtensionExecutableNotFound) assert.Equal(t, "", stdout.String()) + assert.Equal(t, "", stderr.String()) } func TestManager_Install_git(t *testing.T) {