Skip to content

Commit

Permalink
Add more debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
karangattu committed Mar 21, 2024
1 parent 6e86b36 commit 51c5850
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/playwright/shiny/session/flush/test_on_flush.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ def test_output_image_kitchen(page: Page, local_app: ShinyAppProc) -> None:
"'bx-3-second-flushed', 'by-3-second-flushed', 'c-3-flushed')"
)

print("closing app")
# Verify `on_ended` callbacks are called in the correct order (and cancelled)
local_app.close()
print("waiting for output")

# 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(stdout)
print(f"stdout: `{stdout}`")
print(local_app.stdout)
out_indexes = [
stdout.index("session ended - sync - test1"),
stdout.index("session ended - async - test2"),
Expand Down

0 comments on commit 51c5850

Please sign in to comment.