Skip to content

Commit 4358386

Browse files
author
Sune Debel
committed
remove deadline for cpu bound tests
1 parent eafcef7 commit 4358386

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_effect.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def test_memoize(self):
184184
assert double_e.run(None) == 'result'
185185
assert state.value == ('modify was called', )
186186

187+
@settings(deadline=None)
187188
@given(effects(), effects())
188189
def test_and_then_cpu_bound(self, e1, e2):
189190
e1.and_then(effect.cpu_bound(lambda _: e2)).run(None) == e2.run(None)
@@ -203,6 +204,7 @@ def test_recover_io_bound(self, e):
203204
effect.error('').recover(effect.io_bound(lambda _: e)
204205
).run(None) == e.run(None)
205206

207+
@settings(deadline=None)
206208
@given(effects(), anything())
207209
def test_map_cpu_bound(self, e, value):
208210
e.map(effect.cpu_bound(lambda _: value)).run(None) == value
@@ -222,6 +224,7 @@ def test_combine_io_bound(self, e1, e2):
222224
effect.combine(e1, e2)(effect.io_bound(lambda v1, v2: (v1, v2))
223225
).run(None) == (e1.run(None), e2.run(None))
224226

227+
@settings(deadline=None)
225228
@given(effects(), effects())
226229
def test_lift_cpu_bound(self, e1, e2):
227230
effect.lift(effect.cpu_bound(lambda v1, v2: (v1, v2))
@@ -232,6 +235,7 @@ def test_lift_io_bound(self, e1, e2):
232235
effect.lift(effect.io_bound(lambda v1, v2: (v1, v2))
233236
)(e1, e2).run(None) == (e1.run(None), e2.run(None))
234237

238+
@settings(deadline=None)
235239
@given(unaries(rights()))
236240
def test_from_callable_cpu_bound(self, f):
237241
assert effect.from_callable(effect.cpu_bound(f)

0 commit comments

Comments
 (0)