X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tests%2Ftest_init.py;h=0e2bdcd0e0884cb7bfba6b1f036afca773ad5af6;hb=73b11c8f6fc42327bcfba1e256f9cc3d4d044949;hp=1e05455b385cfed0057037ca6161c2fab2fa845a;hpb=f9cd5cc676355485c2d9c8bc2be22ddad4874382;p=ric-plt%2Fxapp-frame-py.git diff --git a/tests/test_init.py b/tests/test_init.py index 1e05455..0e2bdcd 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -16,7 +16,7 @@ # ================================================================================== import time import pytest -from rmr.exceptions import InitFailed +from ricxappframe.rmr.exceptions import InitFailed from ricxappframe.xapp_frame import Xapp, RMRXapp @@ -57,6 +57,7 @@ def test_init_rmr_xapp(): pass rmr_xapp = RMRXapp(foo, post_init=post_init, rmr_wait_for_ready=False, use_fake_sdl=True) - rmr_xapp.run() + # pytest will never return without thread and stop + rmr_xapp.run(thread=True) time.sleep(1) - rmr_xapp.stop() # pytest will never return without this. + rmr_xapp.stop()