From bc7887c8aa4850cd51b335b047a0a515595dae8b Mon Sep 17 00:00:00 2001 From: MarioRuiz Date: Mon, 26 Sep 2022 13:41:09 +0000 Subject: [PATCH] tests fixed for 3.1 --- spec/nice_http/nice_http_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/nice_http/nice_http_spec.rb b/spec/nice_http/nice_http_spec.rb index 04bd6cb..62bbcd3 100644 --- a/spec/nice_http/nice_http_spec.rb +++ b/spec/nice_http/nice_http_spec.rb @@ -172,7 +172,7 @@ it 'returns error if timeout reached when connecting' do klass.timeout = 2 http = klass.new("http://example.com:8888") rescue err = $ERROR_INFO - expect(err.message).to match /execution expired/i + expect(err.message).to match /(execution expired|Failed to open TCP connection)/i end end