@@ -43,16 +43,15 @@ async def test_deploy_local_bundle_dir(event_loop):
4343 async with base .CleanModel () as model :
4444 await model .deploy (str (bundle_path ))
4545
46- app1 = model .applications .get ('grafana ' )
47- app2 = model .applications .get ('prometheus ' )
46+ app1 = model .applications .get ('juju-qa-test ' )
47+ app2 = model .applications .get ('nrpe ' )
4848 with open ("/tmp/output" , "w" ) as writer :
4949 writer .write (str (bundle_path ) + "\n " )
5050 for (k , v ) in model .applications .items ():
5151 writer .write (k )
5252 assert app1 and app2
53- await model .block_until (lambda : (len (app1 .units ) == 1 and
54- len (app2 .units ) == 1 ),
55- timeout = 60 * 4 )
53+ # import pdb;pdb.set_trace()
54+ await model .wait_for_idle (['juju-qa-test' , 'nrpe' ], wait_for_at_least_units = 1 )
5655
5756
5857@base .bootstrapped
@@ -64,12 +63,10 @@ async def test_deploy_local_bundle_file(event_loop):
6463 async with base .CleanModel () as model :
6564 await model .deploy (str (mini_bundle_file_path ))
6665
67- app1 = model .applications .get ('grafana ' )
68- app2 = model .applications .get ('prometheus ' )
66+ app1 = model .applications .get ('juju-qa-test ' )
67+ app2 = model .applications .get ('nrpe ' )
6968 assert app1 and app2
70- await model .block_until (lambda : (len (app1 .units ) == 1 and
71- len (app2 .units ) == 1 ),
72- timeout = 60 * 4 )
69+ await model .wait_for_idle (['juju-qa-test' , 'nrpe' ], wait_for_at_least_units = 1 )
7370
7471
7572@base .bootstrapped
0 commit comments