try to avoid race condition in other service updater test, increasing sleep time
This commit is contained in:
parent
26c48ea93b
commit
4ef30e4fb8
@ -126,7 +126,7 @@ def test_nic_update_authorized_update_other_services(client):
|
|||||||
# must be good (was different IP)
|
# must be good (was different IP)
|
||||||
assert response.content == b'good 1.2.3.4'
|
assert response.content == b'good 1.2.3.4'
|
||||||
# test below was sometimes failing, give other service n seconds to process the update:
|
# test below was sometimes failing, give other service n seconds to process the update:
|
||||||
time.sleep(1.0)
|
time.sleep(10.0)
|
||||||
# now check if it updated the other service also:
|
# now check if it updated the other service also:
|
||||||
assert query_ns(TEST_HOST_OTHER, 'A') == '1.2.3.4'
|
assert query_ns(TEST_HOST_OTHER, 'A') == '1.2.3.4'
|
||||||
response = client.get(reverse('nic_update') + '?myip=2.3.4.5',
|
response = client.get(reverse('nic_update') + '?myip=2.3.4.5',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user