Browse Source

Merge pull request #13486 from AndriiLandiak/fix-compile

Fix compile error
pull/13493/head
Viacheslav Klimov 1 year ago
committed by GitHub
parent
commit
6fa8c6b5e3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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