Commit bfc45532 authored by zhifan huang's avatar zhifan huang

chore: add log of restart machine

parent bd0ca9ef
......@@ -123,13 +123,14 @@ class TestNet(unittest.TestCase):
nodes, _ = deploy_re6st(nm)
wait_stable(nodes, 100)
# stop on machine randomly
index = int(random.random() * 7) + 1
machine = nodes[index]
machine.stop()
time.sleep(5)
machine.run("-i" + machine.node.iface.name)
logging.info("restart %s", machine.name)
self.assertTrue(wait_stable(nodes, 400), "network can't recover")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment