Skip to content

Commit

Permalink
Merge pull request #308 from mexisme/bugfix/dns-spec-bad-matcher
Browse files Browse the repository at this point in the history
Fix incorrect matcher in DNS spec/test
  • Loading branch information
igrigorik authored Jan 7, 2017
2 parents bcba7b6 + 419fa01 commit 1404ff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/dns_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
http = EventMachine::HttpRequest.new('http://127.0.0.1:8090/redirect/badhost', :connect_timeout => 0.1).get :redirects => 1
http.callback { failed(http) }
http.errback {
http.error.should match('unable to resolve server address')
http.error.should match(/unable to resolve (server |)address/)
EventMachine.stop
}
}
Expand All @@ -31,7 +31,7 @@
http = EventMachine::HttpRequest.new('http://somethinglocal/', :connect_timeout => 0.1).get
http.callback { failed(http) }
http.errback {
http.error.should match(/unable to resolve server address/)
http.error.should match(/unable to resolve (server |)address/)
http.response_header.status.should == 0
EventMachine.stop
}
Expand Down

0 comments on commit 1404ff1

Please sign in to comment.