Skip to content

Commit

Permalink
Update Doctor::Mysql tests to avoid long timeouts on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-fazzi committed Dec 26, 2021
1 parent 3f40e94 commit c45503f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/doctor/mysql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
let(:doctor) { described_class.new(movefile_name, movefile_dir) }

context '.new' do
before do
allow(doctor).to receive(:mysql_server_doctor).and_return true
allow(doctor).to receive(:mysql_database_doctor).and_return true
end
it 'implements #check! method' do
expect_any_instance_of(described_class).to receive(:check!)
expect(doctor).to receive(:check!)

silence_stream($stdout) { doctor.check! }
end
Expand All @@ -29,7 +33,7 @@
end

it 'calls mysql database check' do
# expect(doctor).to receive(:mysql_database_doctor)
expect(doctor).to receive(:mysql_database_doctor)

silence_stream($stdout) { doctor.check! }
end
Expand Down

0 comments on commit c45503f

Please sign in to comment.