Skip to content

Commit 5a0628d

Browse files
committed
AuditLogHelper.checkAuditEventDiffCount should set maxRows when no filters provided
1 parent d0c69d9 commit 5a0628d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/org/labkey/test/util/AuditLogHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public void checkAuditEventDiffCount(String containerPath, AuditEvent auditEvent
176176

177177
public void checkAuditEventDiffCount(String containerPath, AuditEvent auditEventName, String eventDiffFieldName, List<Filter> filters, List<Integer> expectedDiffCounts) throws IOException, CommandException
178178
{
179-
Integer maxRows = null;//expectedDiffCounts.size(); TODO decide on this up before merge
179+
Integer maxRows = filters == null || filters.isEmpty() ? expectedDiffCounts.size() : null;
180180
List<Map<String, Object>> events = getAuditLogsFromLKS(containerPath, auditEventName, List.of("InventoryUpdateType", eventDiffFieldName), filters, maxRows, ContainerFilter.CurrentAndSubfolders).getRows();
181181
assertEquals("Unexpected number of events", expectedDiffCounts.size(), events.size());
182182
for (int i = 0; i < expectedDiffCounts.size(); i++)

0 commit comments

Comments
 (0)