Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

try fix flaky test (#2027)

Akshay Agrawalc1f55287cc71
diff --git a/tests/_server/test_sessions.py b/tests/_server/test_sessions.py
index d2e4162fca..a5deeb764f 100644
--- a/tests/_server/test_sessions.py
+++ b/tests/_server/test_sessions.py
@@ -139,7 +139,7 @@ def test_kernel_manager_interrupt(tmp_path) -> None:
import time
with open("{file}", 'w') as f:
f.write('0')
- time.sleep(1)
+ time.sleep(5)
with open("{file}", 'w') as f:
f.write('1')
"""
@@ -155,7 +155,7 @@ def test_kernel_manager_interrupt(tmp_path) -> None:
# give time for the file to be written to 0, but not enough for it to be
# written to 1
- time.sleep(0.1)
+ time.sleep(0.5)
kernel_manager.interrupt_kernel()
try: