Skip to content

Commit

Permalink
more debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
karangattu committed Mar 21, 2024
1 parent 51c5850 commit 8087cf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/playwright/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def __init__(self, proc: subprocess.Popen[str], port: int):
self.proc = proc
self.port = port
self.url = f"http://127.0.0.1:{port}/"
print(f"App url is {self.url}")
self.stdout = OutputStream(proc.stdout or dummyio())
self.stderr = OutputStream(proc.stderr or dummyio())
threading.Thread(group=None, target=self._run, daemon=True).start()
Expand Down Expand Up @@ -187,6 +188,7 @@ def run_shiny_app(
timeout_secs: float = 10,
bufsize: int = 64 * 1024,
) -> ShinyAppProc:

if port == 0:
port = shiny._utils.random_port()

Expand Down
1 change: 1 addition & 0 deletions tests/playwright/shiny/session/flush/test_on_flush.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def test_output_image_kitchen(page: Page, local_app: ShinyAppProc) -> None:
# Wait up to 3 seconds for the app to close and print the logs. (Should be ~ instant)
local_app.stdout.wait_for(lambda x: "test4" in x, 10)
stdout = str(local_app.stdout)
print(local_app.stderr)
print(f"stdout: `{stdout}`")
print(local_app.stdout)
out_indexes = [
Expand Down

0 comments on commit 8087cf7

Please sign in to comment.