Skip to content

Commit

Permalink
remove sleeps
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Jul 3, 2024
1 parent 364b360 commit 2e6837e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _selenium_driver(nb_path):
# )
# )
restart_kernel_button = None
waiting_time = 15
waiting_time = 10
start = time.time()

while restart_kernel_button is None and time.time() - start < waiting_time:
Expand Down
2 changes: 0 additions & 2 deletions tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ def test_widget_answer(self, selenium_driver):

driver = selenium_driver("tests/notebooks/widget_answers.ipynb")

time.sleep(5)
nb_cells = get_nb_cells(driver)

# Test 1:
Expand Down Expand Up @@ -607,7 +606,6 @@ def test_widget_figure(selenium_driver, nb_filename, mpl_backend):
# TODO for inline i need to get the image directly from the panel
driver = selenium_driver(nb_filename)

time.sleep(1)
nb_cells = get_nb_cells(driver)

if "inline" == mpl_backend:
Expand Down

0 comments on commit 2e6837e

Please sign in to comment.