Skip to content

Commit

Permalink
Fix server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
splittingred committed May 21, 2019
1 parent cd74e54 commit 6ab83c3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spec/gruf/prometheus/server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
describe '.start' do
subject { server.start }

it 'should start the server and setup signal handlers' do
expect(Signal).to receive(:trap).with('INT').once
expect(Signal).to receive(:trap).with('TERM').once
it 'should start the server' do
expect(server.send(:server)).to receive(:start).once
subject
expect(server).to be_running
Expand All @@ -41,8 +39,6 @@

it 'should log an error' do
expect(server).to_not be_running
expect(Signal).to receive(:trap).with('INT').once
expect(Signal).to receive(:trap).with('TERM').once
expect(logger).to receive(:error).once
expect(server.send(:server)).to receive(:start).once.and_raise(exception)
subject
Expand Down

0 comments on commit 6ab83c3

Please sign in to comment.