summaryrefslogtreecommitdiff
path: root/test/net/http/utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/net/http/utils.rb')
-rw-r--r--test/net/http/utils.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/net/http/utils.rb b/test/net/http/utils.rb
index 3bf7695..dcd9469 100644
--- a/test/net/http/utils.rb
+++ b/test/net/http/utils.rb
@@ -36,14 +36,14 @@ module TestNetHTTPUtils
@server.shutdown
@server_thread.join
end
- assert_match(@log_pattern, @log.string) if @log_pattern
+ @log_tester.call(@log) if @log_tester
# resume global state
Net::HTTP.version_1_2
end
def spawn_server
- @log = StringIO.new('')
- @log_pattern = /\A\z/
+ @log = []
+ @log_tester = lambda {|log| assert_equal([], log ) }
@config = self.class::CONFIG
server_config = {
:BindAddress => config('host'),