spec/integration/fork_reconnect_spec.rb in mongo-2.15.0.alpha vs spec/integration/fork_reconnect_spec.rb in mongo-2.15.0
- old
+ new
@@ -1,5 +1,8 @@
+# frozen_string_literal: true
+# encoding: utf-8
+
require 'spec_helper'
describe 'fork reconnect' do
require_fork
require_mri
@@ -132,10 +135,10 @@
if pid = fork
pid, status = Process.wait2(pid)
status.exitstatus.should == 0
else
Utils.wrap_forked_child do
- client.database.command(ismaster: 1).should be_a(Mongo::Operation::Result)
+ client.database.command(ping: 1).should be_a(Mongo::Operation::Result)
end
end
# Perform a read which can be retried, so that the socket close
# performed by the child is recovered from.