Skip to content

Commit 51c5850

Browse files
committed
Add more debug statements
1 parent 6e86b36 commit 51c5850

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ def test_output_image_kitchen(page: Page, local_app: ShinyAppProc) -> None:
2121
"'bx-3-second-flushed', 'by-3-second-flushed', 'c-3-flushed')"
2222
)
2323

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

2729
# Wait up to 3 seconds for the app to close and print the logs. (Should be ~ instant)
2830
local_app.stdout.wait_for(lambda x: "test4" in x, 10)
2931
stdout = str(local_app.stdout)
30-
print(stdout)
32+
print(f"stdout: `{stdout}`")
33+
print(local_app.stdout)
3134
out_indexes = [
3235
stdout.index("session ended - sync - test1"),
3336
stdout.index("session ended - async - test2"),

0 commit comments

Comments
 (0)