You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@hertzbeat.apache.org by sh...@apache.org on 2024/04/13 14:27:07 UTC

(hertzbeat) 01/03: feature: alert tests fix

This is an automated email from the ASF dual-hosted git repository.

shushengzhou pushed a commit to branch home_apache_info
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git

commit c60136b4b269e032e81ebc932fd66d87e319e60b
Author: a-little-fool <20...@qq.com>
AuthorDate: Sat Jan 20 12:13:47 2024 +0800

    feature: alert tests fix
---
 .../java/org/apache/hertzbeat/alert/service/AlertDefineServiceTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineServiceTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineServiceTest.java
index acbc20dc8..2d20c8326 100644
--- a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineServiceTest.java
+++ b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineServiceTest.java
@@ -167,7 +167,7 @@ class AlertDefineServiceTest {
 
     @Test
     void getAlertDefines() {
-        Specification<AlertDefine> specification = mock(Specification.class);
+        Specification<AlertDefine> sspecification = mock(Specification.class);
         when(alertDefineDao.findAll(specification, PageRequest.of(1, 1))).thenReturn(Page.empty());
         assertNotNull(alertDefineService.getAlertDefines(specification, PageRequest.of(1, 1)));
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: notifications-help@hertzbeat.apache.org