Some fixes for tests. Ref #1784

This commit is contained in:
grossmj
2020-06-19 19:05:23 +09:30
parent 51b76b1e30
commit 7fd8fde020
6 changed files with 20 additions and 20 deletions

View File

@ -171,7 +171,7 @@ async def test_add_nio_binding_udp(vm):
async def test_port_remove_nio_binding(vm):
nio = TraceNG.instance().create_nio({"type": "nio_udp", "lport": 4242, "rport": 4243, "rhost": "127.0.0.1"})
await asyncio.ensure_future(vm.port_add_nio_binding(0, nio))
await vm.port_add_nio_binding(0, nio)
await vm.port_remove_nio_binding(0)
assert vm._ethernet_adapter.ports[0] is None