Skip to content

Test cases are racy! #18

Closed
Closed
@hyperthunk

Description

@hyperthunk

I've seen this fail intermittently several times now. Have also seen testSendAfter and testFlushTimer bomb out a couple of times. The typical symptom of this is that the tests never complete - an apparent deadlock.

In the timer tests, this is often due to the ProcessMonitorNotification in testCancelTimer not arriving. For testTimerFlush I'm less certain of what's happening as we're using timeouts for all of the cases here AFAICT.

I'm not really convinced that there isn't a race in Cloud Haskell's monitoring implementation at the moment, but without further evidence, I'm not going to point the finger either. Part of resolving this bug is getting the right profiling tools enabled so we can inspect what is happening when the tests do start hanging, so I'm opening another bug to look into that.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions