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

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


The following commit(s) were added to refs/heads/master by this push:
     new df4272a2f [bugfix] fix unit test errors in different languages. (#2498)
df4272a2f is described below

commit df4272a2f8c653cb626c517a5484bd0983502d8c
Author: YuLuo <[email protected]>
AuthorDate: Sat Aug 10 09:16:14 2024 +0800

    [bugfix] fix unit test errors in different languages. (#2498)
    
    Signed-off-by: yuluo-yx <[email protected]>
    Co-authored-by: tomsun28 <[email protected]>
---
 .../manager/component/alerter/impl/SmsAlertNotifyHandlerImplTest.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/SmsAlertNotifyHandlerImplTest.java
 
b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/SmsAlertNotifyHandlerImplTest.java
index ce6e38dd4..a0e5b4f53 100644
--- 
a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/SmsAlertNotifyHandlerImplTest.java
+++ 
b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/SmsAlertNotifyHandlerImplTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.hertzbeat.manager.component.alerter.impl;
 
+import java.util.Locale;
 import java.util.Map;
 import java.util.ResourceBundle;
 
@@ -73,6 +74,8 @@ class SmsAlertNotifyHandlerImplTest {
                bundle = mock(ResourceBundle.class);
                when(bundle.getString(anyString())).thenReturn("High");
 
+               Locale.setDefault(Locale.ENGLISH);
+
                notifyHandler = new SmsAlertNotifyHandlerImpl(tencentSmsClient);
        }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to