Skip to content

Commit

Permalink
remove windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Aug 7, 2013
1 parent 21434ae commit b97d04c
Showing 1 changed file with 27 additions and 29 deletions.
56 changes: 27 additions & 29 deletions features/pipe.feature
Expand Up @@ -86,35 +86,33 @@ Feature: Named pipes
And a file named "pipe_producer_example.rb" with:
"""
require 'uvrb'
if !FFI::Platform.windows?
loop = UV::Loop.default
pipe = File.open("/tmp/exchange-pipe.pipe", File::RDWR|File::NONBLOCK)
producer = loop.pipe
producer.open(pipe.fileno)
heartbeat = loop.timer
heartbeat.start(0, 200) do |e|
raise e if e
producer.write("workload") { |e| raise e if e }
end
stopper = loop.timer
stopper.start(3000, 0) do |e|
raise e if e
heartbeat.close {}
producer.close {}
stopper.close {}
end
begin
loop.run
end
loop = UV::Loop.default
pipe = File.open("/tmp/exchange-pipe.pipe", File::RDWR|File::NONBLOCK)
producer = loop.pipe
producer.open(pipe.fileno)
heartbeat = loop.timer
heartbeat.start(0, 200) do |e|
raise e if e
producer.write("workload") { |e| raise e if e }
end
stopper = loop.timer
stopper.start(3000, 0) do |e|
raise e if e
heartbeat.close {}
producer.close {}
stopper.close {}
end
begin
loop.run
end
"""
And a file named "pipe_consumer_example.rb" with:
Expand Down

0 comments on commit b97d04c

Please sign in to comment.