Skip to content

Commit 1404ff1

Browse files
authored
Merge pull request #308 from mexisme/bugfix/dns-spec-bad-matcher
Fix incorrect matcher in DNS spec/test
2 parents bcba7b6 + 419fa01 commit 1404ff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/dns_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
http = EventMachine::HttpRequest.new('http://127.0.0.1:8090/redirect/badhost', :connect_timeout => 0.1).get :redirects => 1
88
http.callback { failed(http) }
99
http.errback {
10-
http.error.should match('unable to resolve server address')
10+
http.error.should match(/unable to resolve (server |)address/)
1111
EventMachine.stop
1212
}
1313
}
@@ -31,7 +31,7 @@
3131
http = EventMachine::HttpRequest.new('http://somethinglocal/', :connect_timeout => 0.1).get
3232
http.callback { failed(http) }
3333
http.errback {
34-
http.error.should match(/unable to resolve server address/)
34+
http.error.should match(/unable to resolve (server |)address/)
3535
http.response_header.status.should == 0
3636
EventMachine.stop
3737
}

0 commit comments

Comments
 (0)