Skip to content

Commit

Permalink
Handles edge cases for parallelization
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Schwaderer <nschwaderer@chef.io>
  • Loading branch information
Nick Schwaderer authored and clintoncwolfe committed Mar 16, 2021
1 parent 4c03ad4 commit cbe105b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/inspec_clear_cache_test.rb
Expand Up @@ -8,7 +8,7 @@

describe "inspec clear_cache" do
it "clears any existing cache" do
dirname = File.expand_path("~/.inspec/cache")
dirname = File.expand_path("~/.inspec/#{SecureRandom.hex(10)}/alt-cache")
unless File.directory?(dirname)
FileUtils.mkdir_p(dirname)
end
Expand All @@ -17,7 +17,7 @@

assert !Dir.glob(newfile).empty?

out = inspec("clear_cache")
out = inspec("clear_cache --vendor-cache=#{dirname}")

assert_empty Dir.glob(newfile)
assert_exit_code 0, out
Expand Down

0 comments on commit cbe105b

Please sign in to comment.