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 ec01806f40f94898a38c91ca6339972f422ea0b1
Author: a-little-fool <[email protected]>
AuthorDate: Sat Jan 20 12:17:44 2024 +0800

    feature: fix AlertDefineServiceTest error
---
 .../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 2d20c8326..acbc20dc8 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> sspecification = mock(Specification.class);
+        Specification<AlertDefine> specification = 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to