From e883410b3fef840630e2fe82f2b563d96f49fdc1 Mon Sep 17 00:00:00 2001 From: Colin Kelley Date: Sat, 20 Mar 2021 17:23:05 -0700 Subject: [PATCH] issue #533: subject.stop so thread cannot keep running and lead to raise_expired_test_double_error --- spec/lib/listen/adapter/linux_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/lib/listen/adapter/linux_spec.rb b/spec/lib/listen/adapter/linux_spec.rb index d87b65ff..53f2a46b 100644 --- a/spec/lib/listen/adapter/linux_spec.rb +++ b/spec/lib/listen/adapter/linux_spec.rb @@ -26,6 +26,10 @@ # TODO: fix other adapters too! subject { described_class.new(config) } + after do + subject.stop + end + describe 'watch events' do let(:directories) { [Pathname.pwd] } let(:adapter_options) { {} }