Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the test port for anyon target #2361

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions unittests/backends/anyon/AnyonStartServerAndTest.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion unittests/backends/anyon/AnyonTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;{}";
Expand Down
2 changes: 1 addition & 1 deletion utils/mock_qpu/anyon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ def startServer(port):

if __name__ == '__main__':
print("Server Starting")
startServer(5000)
startServer(62446)
Loading