From 1c5a3ad8b847b6577dde3331c6f531a00130cc68 Mon Sep 17 00:00:00 2001 From: Pradnya Khalate Date: Wed, 6 Nov 2024 15:54:02 -0800 Subject: [PATCH] * Change the test port for `anyon` target from '5000' to '62446' to match other targets' ports. Signed-off-by: Pradnya Khalate --- unittests/backends/anyon/AnyonStartServerAndTest.sh.in | 4 ++-- unittests/backends/anyon/AnyonTester.cpp | 2 +- utils/mock_qpu/anyon/__init__.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/unittests/backends/anyon/AnyonStartServerAndTest.sh.in b/unittests/backends/anyon/AnyonStartServerAndTest.sh.in index 2524c15e16..f04e915dd3 100644 --- a/unittests/backends/anyon/AnyonStartServerAndTest.sh.in +++ b/unittests/backends/anyon/AnyonStartServerAndTest.sh.in @@ -14,7 +14,7 @@ # import socket # try: # s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -# s.connect(("host.docker.internal", 5000)) +# s.connect(("host.docker.internal", 62446)) # s.close() # except Exception: # exit(1) @@ -27,7 +27,7 @@ checkServerConnection() { import socket try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - s.connect(("localhost", 5000)) + s.connect(("localhost", 62446)) s.close() except Exception: exit(1) diff --git a/unittests/backends/anyon/AnyonTester.cpp b/unittests/backends/anyon/AnyonTester.cpp index 766a80eda9..e3042cf68d 100644 --- a/unittests/backends/anyon/AnyonTester.cpp +++ b/unittests/backends/anyon/AnyonTester.cpp @@ -15,7 +15,7 @@ // port number and localhost connect to mock_qpu backend server within the // container (mock_qpu/anyon). -std::string mockPort = "5000"; +std::string mockPort = "62446"; std::string machine = "telegraph-8q"; std::string backendStringTemplate = "anyon;emulate;false;url;http://localhost:{};credentials;{};machine;{}"; diff --git a/utils/mock_qpu/anyon/__init__.py b/utils/mock_qpu/anyon/__init__.py index e50f142f4b..a3a65e9af3 100644 --- a/utils/mock_qpu/anyon/__init__.py +++ b/utils/mock_qpu/anyon/__init__.py @@ -146,4 +146,4 @@ def startServer(port): if __name__ == '__main__': print("Server Starting") - startServer(5000) + startServer(62446)