Skip to content

Commit

Permalink
INDY-1087: add appending of CLIENT_CONNECTIONS_LIMIT to env file by w…
Browse files Browse the repository at this point in the history
…riteNodeParamsFile() function. (#501)

Signed-off-by: Sergey Shilov <[email protected]>
  • Loading branch information
sergey-shilov authored and ashcherbakov committed Jan 17, 2018
1 parent d49cb4b commit 74e90ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plenum/common/test_network_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
from stp_core.common.util import adict


CLIENT_CONNECTIONS_LIMIT = 15360


class TestNetworkSetup:
@staticmethod
def getNumberFromName(name: str) -> int:
Expand All @@ -45,7 +48,8 @@ def writeNodeParamsFile(filePath, name, nPort, cPort):
contents = [
'NODE_NAME={}'.format(name),
'NODE_PORT={}'.format(nPort),
'NODE_CLIENT_PORT={}'.format(cPort)
'NODE_CLIENT_PORT={}'.format(cPort),
'CLIENT_CONNECTIONS_LIMIT={}'.format(CLIENT_CONNECTIONS_LIMIT)
]
with open(filePath, 'w') as f:
f.writelines(os.linesep.join(contents))
Expand Down

0 comments on commit 74e90ef

Please sign in to comment.