Skip to content

Commit e91d0e8

Browse files
committed
test/integration/install: stub languageserver restart command
gopls restart command is called and creates a promise after gopls installation. Skip calling the command by stubbing the command call during installation testing. Fixes #2356 Change-Id: I9350d18b86f2a4f306909a7159eb291602648d41 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/418548 Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Suzy Mueller <[email protected]>
1 parent a6729ef commit e91d0e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/integration/install.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ suite('Installation Tests', function () {
104104

105105
const missingTools = testCases.map((tc) => getToolAtVersion(tc.name));
106106
const goVersion = await getGoVersion();
107+
108+
sandbox.stub(vscode.commands, 'executeCommand').withArgs('go.languageserver.restart');
109+
107110
await installTools(missingTools, goVersion);
108111

109112
// Confirm that each expected tool has been installed.

0 commit comments

Comments
 (0)