Skip to content
Browse files

Turns out we don't need SystemTimer

  • Loading branch information...
1 parent 6073cd0 commit 479b8a5df25e0d97631c855c2a038113e9472e69 @jyurek jyurek committed Oct 5, 2012
Showing with 1 addition and 3 deletions.
  1. +0 −1 cocaine.gemspec
  2. +0 −1 spec/spec_helper.rb
  3. +1 −1 spec/support/nonblocking_examples.rb
View
1 cocaine.gemspec
@@ -21,6 +21,5 @@ Gem::Specification.new do |s|
s.add_development_dependency('mocha')
s.add_development_dependency('rake')
s.add_development_dependency('posix-spawn')
- s.add_development_dependency('system_timer')
end
View
1 spec/spec_helper.rb
@@ -4,7 +4,6 @@
require 'cocaine'
require 'timeout'
require 'tempfile'
-require 'system_timer'
Dir[File.dirname(__FILE__) + "/support/**.rb"].each{|support_file| require support_file }
View
2 spec/support/nonblocking_examples.rb
@@ -3,7 +3,7 @@
garbage_file = Tempfile.new("garbage")
10.times{ garbage_file.write("A" * 1024 * 1024) }
- SystemTimer.timeout_after(5) do
+ Timeout.timeout(5) do
output = subject.call("cat '#{garbage_file.path}'")
$?.exitstatus.should == 0
output.length.should == 10 * 1024 * 1024

0 comments on commit 479b8a5

Please sign in to comment.
Something went wrong with that request. Please try again.