Skip to content

Commit 0e12980

Browse files
committed
Remove sleep, add longer page timeout for pyscript
1 parent d9eaf07 commit 0e12980

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
from time import sleep
2-
31
from reactpy import component, html
42

53

64
@component
75
def root():
8-
sleep(1)
96
return html.div({"id": "hello-world"}, "hello world")

tests/test_app/tests/test_components.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ class PyscriptTests(PlaywrightTestCase):
509509
def setUpClass(cls):
510510
super().setUpClass()
511511
cls.page.goto(f"http://{cls.host}:{cls._port}/pyscript/")
512+
cls.page.set_default_timeout(10000)
512513

513514
def test_0_hello_world(self):
514515
self.page.wait_for_selector("#hello-world-loading")

0 commit comments

Comments
 (0)