Be more sleepy in test to ensure failure when not locking.

This commit is contained in:
Patrick Mahoney 2012-02-08 21:12:06 -06:00
parent 15fe2e5057
commit 45e6425311
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ module ProcessShared
begin begin
val = mem.get_int(0) val = mem.get_int(0)
# ensure other procs have a chance to interfere # ensure other procs have a chance to interfere
sleep 0.001 if rand(100) == 0 sleep 0.002 if rand(50) == 0
mem.put_int(0, val + 1) mem.put_int(0, val + 1)
rescue => e rescue => e
"#{Process.pid} die'ing because #{e}" "#{Process.pid} die'ing because #{e}"