libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit c4828cc47dedc48bb8c5f7a1cc80b7283022a1b8
parent 8d6bf35f45ff0e6a881301c5606dd3e06d619ee4
Author: Marcello Stanisci <ms@taler.net>
Date:   Mon,  4 May 2020 18:09:46 +0200

check port once per service

Diffstat:
Mintegration-tests/test-ebics.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/integration-tests/test-ebics.py b/integration-tests/test-ebics.py @@ -46,8 +46,8 @@ SUBSCRIBER_BIC="BUKBGB22" SUBSCRIBER_NAME="Oliver Smith" BANK_ACCOUNT_LABEL="savings" -def checkPorts(): - for i in [5000, 5001]: +def checkPorts(ports): + for i in ports: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: s.bind(i) @@ -75,6 +75,7 @@ assert(0 == call(["rm", "-f", "nexus/libeufin-nexus.sqlite3"])) DEVNULL = open(os.devnull, "w") # Start nexus +checkPorts([5001]) nexus = Popen(["./gradlew", "nexus:run"], stdout=PIPE, stderr=PIPE) for i in range(10): try: @@ -89,6 +90,7 @@ for i in range(10): continue break +checkPorts([5000]) sandbox = Popen(["./gradlew", "sandbox:run"], stdout=PIPE, stderr=PIPE) for i in range(10): try: