Skip to content

Commit

Permalink
test: put deadline increase in the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
hollandjg committed Nov 22, 2023
1 parent 4f6158e commit b0f89b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions tests/test_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from collections import namedtuple

import hypothesis.strategies as st
from hypothesis import settings

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -68,7 +67,6 @@ def _load_dump_via_disk(o):
return _load_dump_via_disk


@settings(deadline=500) # some serializers are slow
@st.composite
def serializer_dump_load_strategy(draw):
"""Strategy returns a function which dumps an object and reloads it via a supported method."""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
logger = logging.getLogger(__name__)


@settings(suppress_health_check={HealthCheck.too_slow})
@settings(suppress_health_check={HealthCheck.too_slow}, deadline=500)
@given(standard_state_dataclass_strategy(), serializer_dump_load_strategy())
def test_state_serialize_deserialize(o: StandardStateDataClass, dump_load):
o_loaded = dump_load(o)
Expand Down

0 comments on commit b0f89b4

Please sign in to comment.