Do not thread by default, but let the user choose.
[ric-plt/xapp-frame-py.git] / tests / test_init.py
index 1e05455..5aa6bf1 100644 (file)
@@ -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()