X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tests%2Ftest_alarm.py;h=2eec9c969cb3ad1666d5365658bc4082e808731d;hb=bc44805e53a5c84a32c4dfe09d32fe4d503acaca;hp=df8b2d451523135e2af591570de146fe47fc3921;hpb=af8b53fd50d9efeb68330ea0016e037caf2f4636;p=ric-plt%2Fxapp-frame-py.git diff --git a/tests/test_alarm.py b/tests/test_alarm.py index df8b2d4..2eec9c9 100644 --- a/tests/test_alarm.py +++ b/tests/test_alarm.py @@ -79,7 +79,7 @@ def test_alarm_set_get(monkeypatch): alarm.AlarmManager(MRC_SEND, "bogus", "envvars") # good environment variables - monkeypatch.setenv(ALARM_MGR_SERVICE_NAME_ENV, "localhost") + monkeypatch.setenv(ALARM_MGR_SERVICE_NAME_ENV, "127.0.0.1") # do NOT use localhost monkeypatch.setenv(ALARM_MGR_SERVICE_PORT_ENV, "4567") # any int is ok here mgr = alarm.AlarmManager(MRC_SEND, "moid2", "appid2") assert mgr is not None @@ -106,7 +106,7 @@ def test_alarm_manager(monkeypatch): """ test send functions and ensure a message arrives """ - monkeypatch.setenv(ALARM_MGR_SERVICE_NAME_ENV, "localhost") + monkeypatch.setenv(ALARM_MGR_SERVICE_NAME_ENV, "127.0.0.1") # do NOT use localhost monkeypatch.setenv(ALARM_MGR_SERVICE_PORT_ENV, "4567") # must match rcv port above mgr = AlarmManager(MRC_SEND, "moid", "appid") assert mgr is not None