Pārlūkot izejas kodu

increate port wait time

dinhlongviolin1 1 mēnesi atpakaļ
vecāks
revīzija
b12ce96a9c
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      tests/gui/notebook/test_notebook_simple_gui.py

+ 2 - 2
tests/gui/notebook/test_notebook_simple_gui.py

@@ -27,7 +27,7 @@ def test_notebook_simple_gui(tb, helpers):
     tb.execute_cell("gui_init")
     tb.execute_cell("gui_init")
     tb.execute_cell("gui_run")
     tb.execute_cell("gui_run")
     while not helpers.port_check():
     while not helpers.port_check():
-        time.sleep(0.1)
+        time.sleep(1)
     assert ">Hello</h1>" in urlopen("http://127.0.0.1:5000/taipy-jsx/page1").read().decode("utf-8")
     assert ">Hello</h1>" in urlopen("http://127.0.0.1:5000/taipy-jsx/page1").read().decode("utf-8")
     assert 'defaultValue=\\"10\\"' in urlopen("http://127.0.0.1:5000/taipy-jsx/page1").read().decode("utf-8")
     assert 'defaultValue=\\"10\\"' in urlopen("http://127.0.0.1:5000/taipy-jsx/page1").read().decode("utf-8")
     # Test state manipulation within notebook
     # Test state manipulation within notebook
@@ -71,7 +71,7 @@ def test_notebook_simple_gui_fastapi(tb, helpers):
     tb.execute_cell("gui_init")
     tb.execute_cell("gui_init")
     tb.execute_cell("gui_run")
     tb.execute_cell("gui_run")
     while not helpers.port_check():
     while not helpers.port_check():
-        time.sleep(0.1)
+        time.sleep(1)
     assert ">Hello</h1>" in urlopen("http://127.0.0.1:5000/taipy-jsx/page1").read().decode("utf-8")
     assert ">Hello</h1>" in urlopen("http://127.0.0.1:5000/taipy-jsx/page1").read().decode("utf-8")
     assert 'defaultValue=\\"10\\"' in urlopen("http://127.0.0.1:5000/taipy-jsx/page1").read().decode("utf-8")
     assert 'defaultValue=\\"10\\"' in urlopen("http://127.0.0.1:5000/taipy-jsx/page1").read().decode("utf-8")
     # Test state manipulation within notebook
     # Test state manipulation within notebook