Permalink
Browse files

ignore different streaming behavior between ubuntu and osx in integra…

…tion test
  • Loading branch information...
1 parent 7ba32be commit 895b09b207775e7204ae1e0937a45a9dd971fd3f @rkh rkh committed Mar 8, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/integration_test.rb
View
5 test/integration_test.rb
@@ -20,12 +20,13 @@ class IntegrationTest < Test::Unit::TestCase
it 'streams' do
next if server.name == "webrick"
- times, chunks = [], []
+ times, chunks = [Time.now], []
server.get_stream do |chunk|
+ next if chunk.empty?
chunks << chunk
times << Time.now
end
- assert_equal ["", "a", "b"], chunks
+ assert_equal ["a", "b"], chunks
assert times[1] - times[0] < 1
assert times[2] - times[1] > 1
end

0 comments on commit 895b09b

Please sign in to comment.