Skip to content

Commit cfc781b

Browse files
committed
Test: adjust integ. spec after error catching
1 parent 39634d3 commit cfc781b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/integration/outputs/ilm_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,14 @@
198198
let (:settings) { super().merge!({ 'ilm_enabled' => true }) }
199199

200200
it 'should raise a configuration error' do
201+
# TODO should be refactored not to rely on plugin internals
202+
finish_register = subject.method(:finish_register)
203+
expect(subject).to receive(:finish_register)
201204
expect do
202205
begin
203206
subject.register
204-
sleep(1)
207+
finish_register.call
208+
sleep(1.5) # wait_for_successful_connection (for the thread to raise)
205209
ensure
206210
subject.send :stop_after_successful_connection_thread
207211
end

0 commit comments

Comments
 (0)