Skip to content

Commit

Permalink
Watcher: Defer FS listener restart to fix Ruby 3.4.0.dev crash (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson authored Aug 1, 2024
1 parent e27ab73 commit ae5555e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mighty_test/watcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def mt(*test_paths, flags: [])
$stdout.flush
rescue Interrupt
# Pressing ctrl-c kills the fs_event background process, so we have to manually restart it.
restart_file_system_listener
# Do this in a separate thread to work around odd behavior on Ruby 3.4.
Thread.new { restart_file_system_listener }
end

def start_file_system_listener
Expand Down

0 comments on commit ae5555e

Please sign in to comment.