adjust test strings for incrementing connection IDs

This commit is contained in:
toofar 2024-05-11 14:17:11 +12:00
parent f6e9295c50
commit ccebbd6ebb
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: Connection refused \(ConnectionRefusedError\)"):
r"connection [0-9]: 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: Error string \(ConnectionError\)"):
r"connection [0-9]: Error string \(ConnectionError\)"):
ipc_server.handle_connection()
assert "We got an error immediately." in caplog.messages