Skip to content

Commit

Permalink
test: Decrease input size in hypothesis test.
Browse files Browse the repository at this point in the history
And increase hypothesis deadline to prevent failing CI tests.
  • Loading branch information
b-butler committed Jan 17, 2024
1 parent 814e280 commit 59c9095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/data/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def orderly_log_content(
for c in draw(keys)
}
)
return draw(st.lists(contexts, max_size=15))
return draw(st.lists(contexts, max_size=10))


def populate_log(logger, log_contents):
Expand Down Expand Up @@ -119,7 +119,7 @@ def check_logger_values(df, log_contents):


@given(orderly_log_content())
@settings(deadline=500) # Allow up to 0.5 seconds per test.
@settings(deadline=1_000) # Allow up to 1 seconds per test.
def test_to_dataframe(log_contents):
logger = du.data.logging.Logger()
num_empty = populate_log(logger, log_contents)
Expand Down

0 comments on commit 59c9095

Please sign in to comment.