mirror of
https://github.com/vale981/jobmanager
synced 2025-03-05 18:01:38 -05:00
more deterministic port selection
This commit is contained in:
parent
c00863f39d
commit
fd7f190962
1 changed files with 5 additions and 2 deletions
|
@ -725,7 +725,9 @@ def test_digest_rejected():
|
||||||
|
|
||||||
p_server.join()
|
p_server.join()
|
||||||
|
|
||||||
def test_exception():
|
def test_exception():
|
||||||
|
global PORT
|
||||||
|
PORT += 1
|
||||||
class MyManager_Client(jobmanager.BaseManager):
|
class MyManager_Client(jobmanager.BaseManager):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -760,7 +762,8 @@ def test_exception():
|
||||||
return m
|
return m
|
||||||
|
|
||||||
for p_version_server in [2, 3]:
|
for p_version_server in [2, 3]:
|
||||||
port = np.random.randint(20000, 30000)
|
PORT += 10
|
||||||
|
port = PORT
|
||||||
authkey = 'q'
|
authkey = 'q'
|
||||||
with open("ap_server.out", 'w') as outfile:
|
with open("ap_server.out", 'w') as outfile:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue