From: David Holroyd Date: 2005-11-09T22:21:59+09:00 Subject: Re: Checking for race conditions with Ruby threads On Wed, Nov 09, 2005 at 01:06:32PM +0900, MenTaLguY wrote: > There's value in constructing stuff like this to show up such a bug for > debugging, but race conditions just aren't something you can reliably > unit test for. With enough control over the components under test, it is often possible to 'rig the race', such that a specific error in serialisation is forced to occur (i.e. artificially blocking one of the threads for the duration of the test). (Probably not possible in this instance though.) dave -- http://david.holroyd.me.uk/