Skip to content

Commit 8087cf7

Browse files
committed
more debugging statements
1 parent 51c5850 commit 8087cf7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/playwright/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def __init__(self, proc: subprocess.Popen[str], port: int):
136136
self.proc = proc
137137
self.port = port
138138
self.url = f"http://127.0.0.1:{port}/"
139+
print(f"App url is {self.url}")
139140
self.stdout = OutputStream(proc.stdout or dummyio())
140141
self.stderr = OutputStream(proc.stderr or dummyio())
141142
threading.Thread(group=None, target=self._run, daemon=True).start()
@@ -187,6 +188,7 @@ def run_shiny_app(
187188
timeout_secs: float = 10,
188189
bufsize: int = 64 * 1024,
189190
) -> ShinyAppProc:
191+
190192
if port == 0:
191193
port = shiny._utils.random_port()
192194

tests/playwright/shiny/session/flush/test_on_flush.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def test_output_image_kitchen(page: Page, local_app: ShinyAppProc) -> None:
2929
# Wait up to 3 seconds for the app to close and print the logs. (Should be ~ instant)
3030
local_app.stdout.wait_for(lambda x: "test4" in x, 10)
3131
stdout = str(local_app.stdout)
32+
print(local_app.stderr)
3233
print(f"stdout: `{stdout}`")
3334
print(local_app.stdout)
3435
out_indexes = [

0 commit comments

Comments
 (0)