Skip to content

Commit

Permalink
Use mockingbird 0.1.1 quiet flag to make tests less noisy
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayes Davis committed Feb 18, 2012
1 parent b8b6be8 commit 92a3cb9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/adapters/gnip/connection_test.rb
Expand Up @@ -23,7 +23,7 @@ def test_failed_authentication_results_in_on_error
end

def test_reconnects_and_reauthenticates_after_disconnect
Mockingbird.setup(:port=>8080) do
Mockingbird.setup(:port=>8080,:quiet=>true) do

on_connection(1) do
10.times do
Expand Down
2 changes: 1 addition & 1 deletion test/wader/fatal_http_responses_test.rb
Expand Up @@ -36,7 +36,7 @@ def test_range_unacceptable_is_fatal

private
def run_test_for_status_code(code,message,error_type)
Mockingbird.setup(:port=>8080) do
Mockingbird.setup(:port=>8080,:quiet=>true) do
status code, message
end

Expand Down
2 changes: 1 addition & 1 deletion test/wader/non_fatal_http_responses_test.rb
Expand Up @@ -12,7 +12,7 @@ def setup_mockingbird
conn_codes = self.codes
puts "WARNING: #{self.name} will take some time to complete."
puts "Testing #{conn_codes.length} HTTP status codes"
Mockingbird.setup(:port=>8080) do
Mockingbird.setup(:port=>8080,:quiet=>true) do
conn_codes.each_with_index do |code, num|
# We have to do all this math because each status code is going to
# be sent down 2x. One on the initial connect, one on the retry
Expand Down
2 changes: 1 addition & 1 deletion test/wader/normal_operation_test.rb
Expand Up @@ -16,7 +16,7 @@ def enqueue(event)

def test_receives_and_consumes_events
expected_count = 100
Mockingbird.setup(:port=>8080) do
Mockingbird.setup(:port=>8080,:quiet=>true) do
expected_count.times do |i|
send %Q({"foo":"bar#{i}"})
end
Expand Down
4 changes: 2 additions & 2 deletions test/wader/reconnections_test.rb
Expand Up @@ -5,7 +5,7 @@ class ReconnectionsTest < Test::Unit::TestCase
include WaderTest

def test_raises_after_max_reconnect_attempts
Mockingbird.setup(:port=>8080) do
Mockingbird.setup(:port=>8080,:quiet=>true) do

# Success on first connection
on_connection(1) do
Expand Down Expand Up @@ -52,7 +52,7 @@ def test_retries_if_server_initially_unavailable
end

def test_retries_if_server_becomes_unavailable
Mockingbird.setup(:port=>8080) do
Mockingbird.setup(:port=>8080,:quiet=>true) do
# Success on first connection
on_connection(1) do
10.times do
Expand Down

0 comments on commit 92a3cb9

Please sign in to comment.