[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:
parent
7a204f63e9
commit
1bbb31f46c
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user