Skip to content

Commit

Permalink
fixing timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jnumainville committed Feb 23, 2024
1 parent d5d003d commit f128afb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/ui/test/deephaven/ui/test_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from unittest.mock import Mock
from .BaseTest import BaseTestCase

LISTENER_TIMEOUT = 2.0


def render_hook(fn: Callable):
"""
Expand Down Expand Up @@ -155,7 +157,7 @@ def _test_table_listener(replayed_table_val=table, listener_val=listener):

table_writer.write_row(*update)

if not event.wait(timeout=1.0):
if not event.wait(timeout=LISTENER_TIMEOUT):
assert False, "listener was not called"

def test_table_listener(self):
Expand Down

0 comments on commit f128afb

Please sign in to comment.