Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 13424]
  • Loading branch information
zenspider committed Jun 6, 2022
1 parent 288eb6e commit 04e5e34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/minitest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ def self.run args = []

options = process_args args

Minitest.const_set :SEED, options[:seed] unless defined?(Minitest::SEED)
unless defined?(Minitest::SEED) && Minitest::SEED then
remove_const :SEED
const_set :SEED, options[:seed]
end

reporter = CompositeReporter.new
reporter << SummaryReporter.new(options[:io], options)
Expand Down
4 changes: 4 additions & 0 deletions test/minitest/test_minitest_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ def test_failure
end
end

def test_seed # this is set for THIS run, so I'm not testing it's actual value
assert_instance_of Integer, Minitest::SEED
end

def test_run_failing_filtered
setup_basic_tu

Expand Down

0 comments on commit 04e5e34

Please sign in to comment.