mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fixed the incorrect assertion in noncontiguous_vlan test
The assertion fails if the VLAN is found in which case find returns a positive number. So here the assertion should infact assert < 0 result. Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
c388f7f180
commit
4c0eecc195
@ -81,6 +81,6 @@ class TestUpdatePhysicalNetwork(cloudstackTestCase):
|
||||
self.network = phy_networks[0]
|
||||
self.networkid = phy_networks[0].id
|
||||
updateResponse = self.network.update(self.apiClient, id = self.networkid, removevlan = self.vlan["full"])
|
||||
self.assert_(updateResponse.vlan.find(self.vlan["full"]) > 0,
|
||||
self.assert_(updateResponse.vlan.find(self.vlan["full"]) < 0,
|
||||
"VLAN was not removed successfully")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user