summaryrefslogtreecommitdiffstats
path: root/crates/core/tedge_mapper/src/c8y/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/core/tedge_mapper/src/c8y/tests.rs')
-rw-r--r--crates/core/tedge_mapper/src/c8y/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/core/tedge_mapper/src/c8y/tests.rs b/crates/core/tedge_mapper/src/c8y/tests.rs
index 2d37ce87..e72f9eed 100644
--- a/crates/core/tedge_mapper/src/c8y/tests.rs
+++ b/crates/core/tedge_mapper/src/c8y/tests.rs
@@ -681,7 +681,7 @@ async fn test_sync_child_alarms() {
let alarm_message = Message::new(&Topic::new_unchecked(alarm_topic), alarm_payload);
// During the sync phase, alarms are not converted immediately, but only cached to be synced later
- assert_eq!(converter.convert(&alarm_message).await.len(), 1);
+ assert!(converter.convert(&alarm_message).await.is_empty());
let non_alarm_topic = "tedge/measurements/external_sensor";
let non_alarm_payload = r#"{"temp": 1}"#;