Skip to content

Commit 10ceca7

Browse files
committed
Wait for index
1 parent 1815257 commit 10ceca7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/integration-tests/language/LanguageClientIntegration.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { expect } from "chai";
1818
import { LanguageClientManager } from "../../../src/sourcekit-lsp/LanguageClientManager";
1919
import { testAssetUri } from "../../fixtures";
2020
import { activateExtensionForSuite, buildProject } from "../utilities/testutilities";
21-
import { touchDocument, waitForClientState } from "../utilities/lsputilities";
21+
import { touchDocument, waitForClientState, waitForIndex } from "../utilities/lsputilities";
2222

2323
suite("Language Client Integration Suite @slow", function () {
2424
this.timeout(3 * 60 * 1000);
@@ -43,11 +43,13 @@ suite("Language Client Integration Suite @slow", function () {
4343
const position = new vscode.Position(2, 6);
4444

4545
setup(async () => {
46+
this.timeout(60 * 1000);
4647
// Focus on the file of interest
4748
await vscode.window.showTextDocument(uri);
4849
await clientManager.restart();
4950
await waitForClientState(clientManager, langclient.State.Running);
5051
await touchDocument(clientManager, uri);
52+
await waitForIndex(clientManager);
5153
});
5254

5355
test("Goto Definition", async function () {

0 commit comments

Comments
 (0)