Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bitterpanda63 committed Feb 7, 2025
1 parent cbb2124 commit 5f73662
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void testFetchNewConfig() {
Optional<APIResponse> res = api.fetchNewConfig("token", 2);
assertTrue(res.isPresent());
assertTrue(res.get().block());
assertEquals(1, res.get().endpoints().size());
assertEquals(3, res.get().endpoints().size());
}
@Test
@StdIo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void renewWithLinkedUpBackgroundProcess() throws InterruptedException {
assertNotNull(threadCacheObject);

// Test the endpoints :
assertEquals(1, threadCacheObject.getEndpoints().size());
assertEquals(3, threadCacheObject.getEndpoints().size());
Endpoint endpoint1 = threadCacheObject.getEndpoints().get(0);
assertEquals("*", endpoint1.getMethod());
assertEquals("/test_ratelimiting_1", endpoint1.getRoute());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public void testShouldSkipVulnerabilityScan_ProtectionForcedOff_WildcardMethod()
assertTrue(SkipVulnerabilityScanDecider.shouldSkipVulnerabilityScan(
new EmptySampleContextObject("", "/api/login", "POST")
));

ThreadCache.set(mockThreadCache);
assertTrue(SkipVulnerabilityScanDecider.shouldSkipVulnerabilityScan(
new EmptySampleContextObject("", "/api/login2", "POST")
Expand Down

0 comments on commit 5f73662

Please sign in to comment.