Assert stderr is empty in manager_test.go
This commit is contained in:
parent
83c5bf3589
commit
e5eedefd09
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue