Skip to content

Commit 150e938

Browse files
committed
Test workaround
1 parent 49845d0 commit 150e938

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/org/sonarsource/sonarlint/ls/mediumtests/LanguageServerMediumTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,12 +719,11 @@ function sum(a, b) {
719719

720720
@Test
721721
void testListAllRules() {
722-
var result = lsProxy.listAllRules().join();
723722
String[] languages = new String[]{"AzureResourceManager", "C", "C++", "CSS", "C#", "CloudFormation", "Docker", "Go", "HTML", "IPython Notebooks", "Java",
724723
"JavaScript", "Kubernetes", "PHP", "Python", "Secrets", "Terraform", "TypeScript", "XML"};
725-
awaitUntilAsserted(() -> assertThat(result).containsOnlyKeys(languages));
724+
awaitUntilAsserted(() -> assertThat(lsProxy.listAllRules().join()).containsOnlyKeys(languages));
726725

727-
awaitUntilAsserted(() -> assertThat(result.get("HTML"))
726+
awaitUntilAsserted(() -> assertThat(lsProxy.listAllRules().join().get("HTML"))
728727
.extracting(Rule::getKey, Rule::getName, Rule::isActiveByDefault)
729728
.contains(tuple("Web:PageWithoutTitleCheck", "\"<title>\" should be present in all pages", true)));
730729
}

0 commit comments

Comments
 (0)