mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Don't use random seed unless randomized
This commit is contained in:
parent
b970abd334
commit
c0befe63e9
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ module Spectator
|
|||
# True will be returned if the spec ran successfully,
|
||||
# or false if there was at least one failure.
|
||||
def run : Bool
|
||||
runner = Runner.new(examples, @config.formatter, @config.run_flags, @config.random_seed)
|
||||
random_seed = (@config.random_seed if @config.run_flags.randomize?)
|
||||
runner = Runner.new(examples, @config.formatter, @config.run_flags, random_seed)
|
||||
runner.run
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue