Revert "adjust test strings for incrementing connection IDs"

This reverts commit ccebbd6ebb.
This commit is contained in:
Florian Bruhin 2024-05-25 14:49:51 +02:00
parent b41cc1d0fc
commit 63b5708bae
1 changed files with 2 additions and 2 deletions

View File

@ -404,7 +404,7 @@ class TestOnError:
socket.setErrorString("Connection refused.")
with pytest.raises(ipc.Error, match=r"Error while handling IPC "
r"connection [0-9]: Connection refused \(ConnectionRefusedError\)"):
r"connection: Connection refused \(ConnectionRefusedError\)"):
ipc_server.on_error(QLocalSocket.LocalSocketError.ConnectionRefusedError)
@ -439,7 +439,7 @@ class TestHandleConnection:
ipc_server._server = FakeServer(socket)
with pytest.raises(ipc.Error, match=r"Error while handling IPC "
r"connection [0-9]: Error string \(ConnectionError\)"):
r"connection: Error string \(ConnectionError\)"):
ipc_server.handle_connection()
assert "We got an error immediately." in caplog.messages