I release step 2 of 2
[ric-plt/xapp-frame-py.git] / tests / test_init.py
index 1e05455..0e2bdcd 100644 (file)
@@ -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()