[fullstack] Use delete_port attribute of destroy VM

test_subnet_delete_race_condition fullstack test deleted port as a test
step, but now destroy can do that.

Change-Id: If54d7349f629585106151794f52c16c3d5b3c26f
Related-bug: #1909234
This commit is contained in:
elajkat 2021-01-14 13:20:57 +01:00
parent 7a204f63e9
commit 1bbb31f46c
1 changed files with 1 additions and 4 deletions

View File

@ -310,10 +310,7 @@ class TestSubnetDeleteRace(BaseDhcpAgentTest):
self.assertEqual(1, len(dhcp_ports))
self.assertEqual('ACTIVE', dhcp_ports[0]['status'])
port_id = self.vm.neutron_port['id']
self.vm.destroy()
self.client.delete_port(port_id)
self.vm.destroy(delete_port=True)
dhcp_ports = self.safe_client.list_ports(**{
'device_owner': 'network:dhcp',