Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use mockingbird 0.1.1 quiet flag to make tests less noisy

  • Loading branch information...
commit 92a3cb9e373db2d71dcf640a19b7ec4a4238f126 1 parent b8b6be8
Hayes Davis authored
View
2  test/adapters/gnip/connection_test.rb
@@ -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
View
2  test/wader/fatal_http_responses_test.rb
@@ -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
View
2  test/wader/non_fatal_http_responses_test.rb
@@ -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
View
2  test/wader/normal_operation_test.rb
@@ -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
View
4 test/wader/reconnections_test.rb
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.