Skip to content

Commit d7b03ca

Browse files
Remove limit param from scanList in test
Simplify PredicateTest by calling wrapper.scanList("statuses=Completed") instead of including an explicit &limit=50. This makes the test rely on the API/default pagination behavior and avoids hard-coding a limit that could mask results or cause brittle test failures when the API's default changes.
1 parent 23bae4c commit d7b03ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/com/checkmarx/ast/predicate/PredicateTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void testGetStates() throws Exception {
6262
@Test
6363
void testScaTriage() throws Exception {
6464
// Automatically find a completed scan that has SCA results
65-
List<Scan> scans = wrapper.scanList("statuses=Completed&limit=50");
65+
List<Scan> scans = wrapper.scanList("statuses=Completed");
6666
Assumptions.assumeTrue(scans != null && scans.size() > 0, "No completed scans available");
6767

6868
Scan scaScan = null;

0 commit comments

Comments
 (0)