Skip to content

Commit e9a030d

Browse files
Copilotljwoods2
andcommitted
Remove port parameter from server_client_incorrect_atoms fixture following PR #94 changes
Co-authored-by: ljwoods2 <[email protected]>
1 parent 57b6b17 commit e9a030d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

imdclient/tests/test_imdclient.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,21 @@ def server_client(self, universe, imdsinfo, request):
7979
client = IMDClient(
8080
f"localhost",
8181
server.port,
82-
universe.trajectory.n_atoms,
82+
universe.atoms.n_atoms,
8383
)
8484
server.join_accept_thread()
8585
yield server, client
8686
client.stop()
8787
server.cleanup()
8888

8989
@pytest.fixture
90-
def server_client_incorrect_atoms(self, universe, imdsinfo, port):
90+
def server_client_incorrect_atoms(self, universe, imdsinfo):
9191
server = InThreadIMDServer(universe.trajectory)
9292
server.set_imdsessioninfo(imdsinfo)
93-
server.handshake_sequence("localhost", port, first_frame=False)
93+
server.handshake_sequence("localhost", first_frame=False)
9494
client = IMDClient(
9595
f"localhost",
96-
port,
96+
server.port,
9797
universe.atoms.n_atoms + 1,
9898
)
9999
server.join_accept_thread()

0 commit comments

Comments
 (0)