From ec4b2dfe1b6770845874bd78433c843083e0e2b3 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Thu, 12 Dec 2024 06:38:04 -0700 Subject: [PATCH] Assert on err msg directly in ext install tests --- pkg/cmd/extension/command_test.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pkg/cmd/extension/command_test.go b/pkg/cmd/extension/command_test.go index 696f247ae..76741714a 100644 --- a/pkg/cmd/extension/command_test.go +++ b/pkg/cmd/extension/command_test.go @@ -301,14 +301,9 @@ func TestNewCmdExtension(t *testing.T) { } return nil }, - wantStderr: fmt.Sprintf( - "! %s", - (&ErrExtensionExecutableNotFound{ - Dir: tempDir, - Name: "gh-test", - }).Error()), - wantErr: false, - isTTY: true, + wantStderr: fmt.Sprintf("! an extension has been installed but there is no executable: executable file named \"%s\" in %s is required to run the extension after install. Perhaps you need to build it?\n", "gh-test", tempDir), + wantErr: false, + isTTY: true, }, { name: "install local extension without executable with no TTY shows no warning",