Browse Source

Fix testNotificationsDeduplication_resourcesShortage

pull/12616/head
Andrii Landiak 1 year ago
parent
commit
70f1f1834f
  1. 2
      application/src/test/java/org/thingsboard/server/service/notification/NotificationRuleApiTest.java

2
application/src/test/java/org/thingsboard/server/service/notification/NotificationRuleApiTest.java

@ -817,7 +817,7 @@ public class NotificationRuleApiTest extends AbstractNotificationApiTest {
.cpuThreshold(1f) .cpuThreshold(1f)
.storageThreshold(1f) .storageThreshold(1f)
.build(); .build();
createNotificationRule(triggerConfig, "Test", "${resource} shortage", createNotificationTarget(tenantAdminUserId).getId()); createNotificationRule(triggerConfig, "Warning: ${resource} shortage", "${resource} shortage", createNotificationTarget(tenantAdminUserId).getId());it a
loginTenantAdmin(); loginTenantAdmin();
assertThat(getMyNotifications(false, 100)).size().isZero(); assertThat(getMyNotifications(false, 100)).size().isZero();

Loading…
Cancel
Save