File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- # typed: true # rubocop:todo Sorbet/StrictSigil
1+ # typed: strict
22# frozen_string_literal: true
33
44raise "#{ __FILE__ } must not be loaded via `require`." if $PROGRAM_NAME != __FILE__
1717require "json/add/exception"
1818require "extend/pathname/write_mkpath_extension"
1919
20- DEFAULT_TEST_TIMEOUT_SECONDS = 5 * 60
20+ DEFAULT_TEST_TIMEOUT_SECONDS = T . let ( 5 * 60 , Integer )
2121
2222begin
2323 # Undocumented opt-out for internal use.
5050 Pathname . activate_extensions!
5151
5252 # tests can also return false to indicate failure
53- run_test = proc { |_ = nil | raise "test returned false" if formula . run_test ( keep_tmp : args . keep_tmp? ) == false }
53+ run_test = proc { |_ | raise "test returned false" if formula . run_test ( keep_tmp : args . keep_tmp? ) == false }
5454 if args . debug? # --debug is interactive
55- run_test . call
55+ run_test . call ( nil )
5656 else
5757 # HOMEBREW_TEST_TIMEOUT_SECS is private API and subject to change.
5858 timeout = ENV [ "HOMEBREW_TEST_TIMEOUT_SECS" ] &.to_i || DEFAULT_TEST_TIMEOUT_SECONDS
You can’t perform that action at this time.
0 commit comments