Skip to content

Commit 7329e64

Browse files
author
Huanxuan Ao
committed
Fix subnet creating failure in functional test
Noticed sometimes floating ip func test failed[1]. The first mumber of the address seems like cannot bigger than 223. So specify subnet ranges as the random number between 0 to 233, maybe it will safer for our functional tests. [1]: http://logs.openstack.org/50/418650/12/check/gate-osc-dsvm-functional-ubuntu-xenial/e163f68/console.html#_2017-01-14_06_58_35_930306 Change-Id: I44a23bce851dcf2009c8d77059cf75ed80145fb0
1 parent 339ab40 commit 7329e64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/tests/functional/network/v2/test_floating_ip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def setUpClass(cls):
3737
# Make a random subnet
3838
cls.subnet = ".".join(map(
3939
str,
40-
(random.randint(0, 255) for _ in range(3))
40+
(random.randint(0, 223) for _ in range(3))
4141
)) + ".0/26"
4242

4343
# Create a network for the floating ip

0 commit comments

Comments
 (0)