diff --git a/tools/web_testbench/_miners.py b/tools/web_testbench/_miners.py index 7daca4f4..3c618a66 100644 --- a/tools/web_testbench/_miners.py +++ b/tools/web_testbench/_miners.py @@ -149,6 +149,7 @@ class TestbenchMiner: elif isinstance(miner, UnknownMiner): await self.add_to_output("Unknown Miner found, attempting to fix.") try: + await self.do_install() async with ( await miner._get_ssh_connection() # noqa - Ignore access to _function ) as conn: @@ -442,6 +443,11 @@ class TestbenchMiner: await self.add_to_output("Miner disconnected, waiting for new miner.") self.start_time = None + async def long_test_loop(self): + while True: + self.state = DONE + await self.install_done() + async def install_loop(self): self.latest_version = sorted(await get_local_versions(), reverse=True)[0] while True: diff --git a/tools/web_testbench/app.py b/tools/web_testbench/app.py index a523f18b..5d5e93fc 100644 --- a/tools/web_testbench/app.py +++ b/tools/web_testbench/app.py @@ -80,6 +80,7 @@ async def install(): for host in miner_network.hosts(): miner = TestbenchMiner(host) asyncio.create_task(miner.install_loop()) + # asyncio.create_task(miner.long_test_loop()) if __name__ == "__main__":