Skip to content

Commit 567285f

Browse files
committed
port = 0 means random port
1 parent 34e7986 commit 567285f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ def wait_until_ready(self, timeoutSecs: float) -> None:
150150
def run_shiny_app(
151151
app_file: Union[str, PurePath],
152152
*,
153-
port: Optional[int] = None,
153+
port: int = 0,
154154
cwd: Optional[str] = None,
155155
wait_for_start: bool = True,
156156
timeout_secs: float = 10,
157157
bufsize: int = 64 * 1024,
158158
) -> ShinyAppProc:
159-
if port is None:
159+
if port == 0:
160160
port = random_port()
161161

162162
child = subprocess.Popen(

0 commit comments

Comments
 (0)