From 45e642531130ca4a8311606e1bdb19c364a9b8f2 Mon Sep 17 00:00:00 2001 From: Patrick Mahoney Date: Wed, 8 Feb 2012 21:12:06 -0600 Subject: [PATCH] Be more sleepy in test to ensure failure when not locking. --- spec/process_shared/semaphore_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/process_shared/semaphore_spec.rb b/spec/process_shared/semaphore_spec.rb index 75b9236..52ba259 100644 --- a/spec/process_shared/semaphore_spec.rb +++ b/spec/process_shared/semaphore_spec.rb @@ -15,7 +15,7 @@ module ProcessShared begin val = mem.get_int(0) # 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) rescue => e "#{Process.pid} die'ing because #{e}"