Skip to content

Commit 4d6d801

Browse files
ahornaceVladimir Kotal
authored andcommitted
Fix failing test when two tests used the same popularity map
1 parent 320d6ba commit 4d6d801

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/org/opensolaris/opengrok/web/api/v1/controller/SuggesterControllerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,16 +574,16 @@ public void testAllowComplexQueries() {
574574

575575
@Test
576576
public void testGetPopularityDataSimple() {
577-
SuggesterServiceImpl.getInstance().increaseSearchCount("swift", new Term(QueryBuilder.FULL, "print"), 10);
577+
SuggesterServiceImpl.getInstance().increaseSearchCount("rust", new Term(QueryBuilder.FULL, "main"), 10);
578578

579579
List<Entry<String, Integer>> res = target(SuggesterController.PATH)
580580
.path("popularity")
581-
.path("swift")
581+
.path("rust")
582582
.request()
583583
.get(popularityDataType);
584584

585585

586-
assertThat(res, contains(new SimpleEntry<>("print", 10)));
586+
assertThat(res, contains(new SimpleEntry<>("main", 10)));
587587
}
588588

589589
@Test

0 commit comments

Comments
 (0)