Skip to content

Commit

Permalink
Don't build client in test
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Nov 3, 2024
1 parent 8657855 commit 0fcef7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_server_stop.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import socket

import viser
import viser._client_autobuild


def test_server_port_is_freed():
# Mock the client autobuild to avoid building the client.
viser._client_autobuild.ensure_client_is_built = lambda: None

server = viser.ViserServer()
original_port = server.get_port()

Expand Down

0 comments on commit 0fcef7f

Please sign in to comment.