summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Abel <info@abel-ikt.de>2022-04-06 15:16:19 +0200
committerMichael Abel <info@abel-ikt.de>2022-04-06 15:16:19 +0200
commitfd5731cf8420a0342187c1a1c4abb1b442bf0dbe (patch)
tree60f46fc6e139ccaf3b53e66ef5efb5af64541265 /tests
parentb54b8cd5c9f5745b842c2703a65c801dd06c5b9d (diff)
Fix message threshhold in test
Signed-off-by: Michael Abel <info@abel-ikt.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_packet_threshold_size/run.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_packet_threshold_size/run.py b/tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_packet_threshold_size/run.py
index 08d6ee79..a1a0661f 100644
--- a/tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_packet_threshold_size/run.py
+++ b/tests/PySys/tedge_mapper_c8y/tedge_mapper_c8y_packet_threshold_size/run.py
@@ -68,7 +68,13 @@ class TedgeMapperC8yThresholdPacketSize(BaseTest):
)
def validate(self):
- self.assertGrep('tedge_sub.out', "The input size 20489 is too big. The threshold is 16384.", contains=True)
+ self.assertGrep(
+ "tedge_sub.out",
+ "The size of the message received on tedge/measurements is 20489 "
+ # Note: 2**16 would bei 18384 but the C8y limit is a bit smaller
+ + "which is greater than the threshold size of 16184.",
+ contains=True,
+ )
def mapper_cleanup(self):
self.log.info("mapper_cleanup")