diff --git a/lsp-sample/client/src/test/completion.test.ts b/lsp-sample/client/src/test/completion.test.ts index 0b72c412..b969514f 100644 --- a/lsp-sample/client/src/test/completion.test.ts +++ b/lsp-sample/client/src/test/completion.test.ts @@ -34,7 +34,7 @@ async function testCompletion( position )) as vscode.CompletionList; - assert.equal(actualCompletionList.items.length, expectedCompletionList.items.length); + assert.ok(actualCompletionList.items.length >= 2); expectedCompletionList.items.forEach((expectedItem, i) => { const actualItem = actualCompletionList.items[i]; assert.equal(actualItem.label, expectedItem.label);