Skip to content

Commit

Permalink
fix test_p2p on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
TTimo authored and zpostfacto committed Sep 30, 2024
1 parent 538ae81 commit 405e2bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_p2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def run( self ):
# Wait for thread to shutdown. Nuke process if we don't exit in time
def join( self, timeout ):
threading.Thread.join( self, timeout )
if self.isAlive():
if self.is_alive():
self.WriteLn( "Still running after %d seconds. Killing" % timeout )
global g_failed
g_failed = True
Expand Down Expand Up @@ -90,7 +90,7 @@ def StartClientInThread( role, local, remote ):
]

env = dict( os.environ )
if os.name == 'nt' and not os.path.exists( 'steamnetworkingsockets.dll' ):
if os.name == 'nt' and not os.path.exists( 'steamnetworkingsockets.dll' ) and not os.path.exists( 'GameNetworkingSockets.dll' ):
bindir = os.path.abspath('../../../bin')
if not os.path.exists( bindir ):
print( "Can't find steamnetworkingsockets.dll" )
Expand Down

0 comments on commit 405e2bf

Please sign in to comment.