commit c353a26fb36b97bdc369bd41e0f23a8bbf2a2ea8
Author: John Davidge <email address hidden>
Date: Tue Aug 5 15:13:03 2014 +0100
Do not assume order of new_peers list elements
This fixes the vpn unit test that breaks with a randomized PYTHONHASHSEED
(see the bug report).
The test assumed that the new_peers list from self.new_update_request had
elements in a particular order. Found with PYTHONHASHSEED=2455351445.
The fix refactors the test case to handle an unsorted new_peers list by
sorting it before running the test.
Partial-bug: #1348818
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.
Reviewed: https:/ /review. openstack. org/112034 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=c353a26fb36 b97bdc369bd41e0 f23a8bbf2a2ea8
Committed: https:/
Submitter: Jenkins
Branch: master
commit c353a26fb36b97b dc369bd41e0f23a 8bbf2a2ea8
Author: John Davidge <email address hidden>
Date: Tue Aug 5 15:13:03 2014 +0100
Do not assume order of new_peers list elements
This fixes the vpn unit test that breaks with a randomized PYTHONHASHSEED
(see the bug report).
The test assumed that the new_peers list from self.new_ update_ request had 2455351445.
elements in a particular order. Found with PYTHONHASHSEED=
The fix refactors the test case to handle an unsorted new_peers list by
sorting it before running the test.
Partial-bug: #1348818
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.
Change-Id: I86e7f84cedbdc8 e1d7404363a560f d759d264c49