You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/01/12 19:45:42 UTC
[plc4x] branch develop updated: test(bacnet): fix max packages considering unfiltered list,
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new ef6fc34 test(bacnet): fix max packages considering unfiltered list,
ef6fc34 is described below
commit ef6fc340b60ae03a29da053580f5ce7d6fdebacf
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed Jan 12 20:42:29 2022 +0100
test(bacnet): fix max packages considering unfiltered list,
---
.../test/java/org/apache/plc4x/java/bacnetip/RandomPackagesTest.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plc4j/drivers/bacnet/src/test/java/org/apache/plc4x/java/bacnetip/RandomPackagesTest.java b/plc4j/drivers/bacnet/src/test/java/org/apache/plc4x/java/bacnetip/RandomPackagesTest.java
index ed141a0..a535608 100644
--- a/plc4j/drivers/bacnet/src/test/java/org/apache/plc4x/java/bacnetip/RandomPackagesTest.java
+++ b/plc4j/drivers/bacnet/src/test/java/org/apache/plc4x/java/bacnetip/RandomPackagesTest.java
@@ -4785,12 +4785,14 @@ public class RandomPackagesTest {
int packageNumber = 0;
if (filter != null) {
// In case of filtering we need to read all packages
+ intermediateHandle.setFilter(filter, BpfProgram.BpfCompileMode.OPTIMIZE);
LOGGER.info("Building timestamp number map");
timestampToNumberMap = new HashMap<>();
while (intermediateHandle.getNextPacket() != null) {
timestampToNumberMap.put(intermediateHandle.getTimestamp().getTime(), ++packageNumber);
}
intermediateHandle.close();
+ // We need a new handle as we consumed the old
intermediateHandle = getHandle(toParse);
intermediateHandle.setFilter(filter, BpfProgram.BpfCompileMode.OPTIMIZE);
} else {