Skip to content

Commit fe73f92

Browse files
committed
Wait for index
1 parent 1815257 commit fe73f92

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ 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

23-
suite("Language Client Integration Suite @slow", function () {
23+
suite.only("Language Client Integration Suite @slow", function () {
2424
this.timeout(3 * 60 * 1000);
2525

2626
let clientManager: LanguageClientManager;
@@ -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)