]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Do not assume order of network_uuid's
authorPritesh Kothari <pritesh.kothari@cisco.com>
Mon, 4 Aug 2014 20:37:56 +0000 (13:37 -0700)
committerpritesh <pritesh.kothari@cisco.com>
Mon, 4 Aug 2014 21:13:50 +0000 (21:13 +0000)
commit31783e2eae339e79225f379ace948a0bb6c157f7
tree8a5a7ebefeabf4f2faaa5503511907d6c82d9021
parent1e7c2c63b26a0b8ae7c66b575ca3754a8410d5cf
Do not assume order of network_uuid's

This fixes the neutron.tests.unit.test_linux_dhcp.TestDnsmasq
.test_existing_dhcp_networks unit test that breaks with a
randomized PYTHONHASHSEED (see the bug report).

The test assumed that the network_uuid's list was sorted, so sort
the result before comparing.

Note: There are several other unrelated unit tests that also break with a
randomized PYTHONHASHSEED, but they are not addressed here. They will be
addressed in separate patches.

Partial-bug: #1348818
Change-Id: Ia6f742e1fae0687164b841beebb4efcf31ff2625
neutron/tests/unit/test_linux_dhcp.py