nbronson/scala-stm — Issue #25: mark/avoid timing-sensitive unit tests
Author: nbronson
Created: 2011-11-09 03:05:44+00:00
State: open
Labels: ENHANCEMENT

Some of the unit tests test timeout functionality, and therefore expect that the elapsed time will be close to the requested value. There is no way to make this test both functional and robust to unlucky scheduling, so these tests should be marked as susceptible to spurious failures.

Some of the unit tests arrange for inter-thread interleavings using Thread.sleep. Marking these tests would be an improvement, but they could also be rewritten to be robust (and faster) by using an out-of-band signaling mechanism.