Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ def Hash.ruby2_keywords_hash?(_hash)

require "sorbet-runtime" if RUBY_VERSION >= "3.0"

require "timeout"

# `Timeout` starts one thread for the whole process on first use and keeps it. Start it before any test runs:
# tests that compare `Thread.list` before and after a step would otherwise take it for a thread the step left behind,
# whenever they happen to be the first to use it.
Timeout.timeout(1) { nil }

require_relative "instrumentation_test_helper"
require_relative "initialize_params_test_helper"

Expand Down