Skip to content

Commit 49c383d

Browse files
committed
Skip fork tests when fork is not available (e.g. Windows)
1 parent c25ff86 commit 49c383d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/mysql2/client_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ def run_gc
173173
expect(final_count).to eq(before_count)
174174
end
175175

176-
177176
it "should not close connections when running in a child process" do
177+
pending("fork is not available on this platform") unless Process.respond_to?(:fork)
178+
178179
run_gc
179180
client = Mysql2::Client.new(DatabaseCredentials['root'])
180181

0 commit comments

Comments
 (0)