Browse Source

Fix compile error

pull/13486/head
Andrii Landiak 1 year ago
parent
commit
a9fd66f7c8
  1. 4
      application/src/test/java/org/thingsboard/server/service/notification/NotificationRuleApiTest.java

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

@ -817,7 +817,7 @@ public class NotificationRuleApiTest extends AbstractNotificationApiTest {
.cpuThreshold(1f)
.storageThreshold(1f)
.build();
createNotificationRule(triggerConfig, "Warning: ${resource} shortage", "${resource} shortage", createNotificationTarget(tenantAdminUserId).getId());it a
createNotificationRule(triggerConfig, "Warning: ${resource} shortage", "${resource} shortage", createNotificationTarget(tenantAdminUserId).getId());
loginTenantAdmin();
assertThat(getMyNotifications(false, 100)).size().isZero();
@ -833,7 +833,7 @@ public class NotificationRuleApiTest extends AbstractNotificationApiTest {
assertThat(notification.getSubject()).isEqualTo("Warning: RAM shortage");
assertThat(notification.getText()).isEqualTo("RAM shortage");
// deduplication is 5 minute, no new message is exp
// deduplication is 1 minute, no new message is exp
notificationRuleProcessor.process(ResourcesShortageTrigger.builder()
.resource(Resource.RAM)
.usage(5L)

Loading…
Cancel
Save