@@ -172,15 +172,9 @@ tests =
172
172
-- scheduler works the way it does.
173
173
, testGroup " MonadTimerCancellable"
174
174
[ testProperty " registerDelayCancellable (IOSim impl)"
175
- (prop_registerDelayCancellable registerDelayCancellable)
175
+ prop_registerDelayCancellable_IOSim
176
176
, testProperty " registerDelayCancellable (IO impl)"
177
- (prop_registerDelayCancellable $
178
- defaultRegisterDelayCancellable
179
- (newTimeout . microsecondsAsIntToDiffTime)
180
- readTimeout
181
- cancelTimeout
182
- awaitTimeout
183
- )
177
+ prop_registerDelayCancellable_IO
184
178
]
185
179
]
186
180
@@ -1335,6 +1329,25 @@ prop_registerDelayCancellable registerDelayCancellableImpl
1335
1329
|| tv == TimeoutCancelled )
1336
1330
| otherwise -> (Just tv, tv == TimeoutCancelled )
1337
1331
1332
+
1333
+
1334
+ -- | Both tests run in `IOSim`, they only differ with the implementation of
1335
+ -- `registerDelayCancellable`
1336
+ --
1337
+ prop_registerDelayCancellable_IOSim, prop_registerDelayCancellable_IO
1338
+ :: DelayWithCancel -> Property
1339
+
1340
+ prop_registerDelayCancellable_IOSim =
1341
+ prop_registerDelayCancellable registerDelayCancellable
1342
+
1343
+ prop_registerDelayCancellable_IO =
1344
+ prop_registerDelayCancellable $
1345
+ defaultRegisterDelayCancellable
1346
+ (newTimeout . microsecondsAsIntToDiffTime)
1347
+ readTimeout
1348
+ cancelTimeout
1349
+ awaitTimeout
1350
+
1338
1351
--
1339
1352
-- Utils
1340
1353
--
0 commit comments