Skip to content

Commit 62b6ccc

Browse files
committed
Merge pull request #467 from sodabrew/ruby_21
Travis update and spec workaround for Ruby 2.1
2 parents 0140a68 + a3d1aad commit 62b6ccc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ rvm:
44
- 1.9.2
55
- 1.9.3
66
- 2.0.0
7-
- 2.1.0-preview2
7+
- 2.1.0
88
- ree
99
- rbx
10-
matrix:
11-
allow_failures:
12-
- rvm: 2.1.0-preview2
1310
env: RBXOPT=-Xgc.honor_start=true
1411
bundler_args: --without benchmarks
1512
script:

spec/mysql2/client_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ def connect *args
396396
end
397397

398398
it "should close the connection when an exception is raised" do
399+
pending "Ruby 2.1 has changed Timeout behavior." if RUBY_VERSION =~ /2.1/
399400
begin
400401
Timeout.timeout(1) do
401402
@client.query("SELECT sleep(2)")
@@ -409,6 +410,7 @@ def connect *args
409410
end
410411

411412
it "should handle Timeouts without leaving the connection hanging if reconnect is true" do
413+
pending "Ruby 2.1 has changed Timeout behavior." if RUBY_VERSION =~ /2.1/
412414
client = Mysql2::Client.new(DatabaseCredentials['root'].merge(:reconnect => true))
413415
begin
414416
Timeout.timeout(1) do
@@ -423,6 +425,7 @@ def connect *args
423425
end
424426

425427
it "should handle Timeouts without leaving the connection hanging if reconnect is set to true after construction true" do
428+
pending "Ruby 2.1 has changed Timeout behavior." if RUBY_VERSION =~ /2.1/
426429
client = Mysql2::Client.new(DatabaseCredentials['root'])
427430
begin
428431
Timeout.timeout(1) do

0 commit comments

Comments
 (0)