Skip to content

Commit

Permalink
fix a flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
milesziemer committed Jun 13, 2024
1 parent c9c751d commit 2ae801a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public void didChange() throws Exception {
server.didChange(changeBuilder.range(rangeAdapter.shiftRight().build()).text(" ").build());
server.didChange(changeBuilder.range(rangeAdapter.shiftRight().build()).text("G").build());

server.getLifecycleManager().getTask(uri).get();
server.getLifecycleManager().waitForAllTasks();

// mostly so you can see what it looks like
assertThat(server.getProject().getDocument(uri).copyText(), equalTo(safeString("$version: \"2\"\n" +
Expand All @@ -451,8 +451,7 @@ public void didChange() throws Exception {
.buildCompletion();
List<CompletionItem> completions = server.completion(completionParams).get().getLeft();

// TODO: Somehow this has become flaky
assertThat(completions, containsInAnyOrder(hasLabel("GetFoo"), hasLabel("GetFooInput")));
assertThat(completions, hasItem(hasLabel("GetFooInput")));
}

@Test
Expand Down

0 comments on commit 2ae801a

Please sign in to comment.