Revert change 8b1bcf0
[osm/N2VC.git] / tests / integration / test_metrics_proxy.py
index 98285fd..81501b0 100644 (file)
@@ -109,7 +109,14 @@ class TestCharm(base.TestN2VC):
                 juju:
                     charm: metrics-proxy-ci
                     proxy: true
-    """
+                initial-config-primitive:
+                -   seq: '1'
+                    name: run
+                    parameter:
+                    -   name: command
+                        data-type: STRING
+                        value: hostname
+"""
 
     # @pytest.mark.serial
     @pytest.mark.asyncio
@@ -130,8 +137,8 @@ class TestCharm(base.TestN2VC):
                     event_loop,
                 )
 
-            while self.running():
-                logging.debug("Waiting for test to finish...")
+            while await self.running():
+                print("Waiting for test to finish...")
                 await asyncio.sleep(15)
 
             logging.debug("test_metrics_proxy stopped")