Merge pull request #5117 from james-stocks/js/fix_html2_tests

Address test:isolated failure
This commit is contained in:
James Stocks 2020-06-26 10:24:41 +01:00 committed by GitHub
commit 82389b61cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -157,6 +157,7 @@ namespace :test do
end
task parallel: [:accept_license] # given isolated being green, why is this needed?
desc "Run test files in multiple threads"
task :isolated do
require "fileutils"

View file

@ -6,7 +6,8 @@ describe "inspec-reporter-html2" do
let(:output_file) { f = Tempfile.new(["temp", ".html"]); f.close; f.path }
def teardown
FileUtils.rm(output_file)
# Use force because the deletion may occasionally fail in parallel CI
FileUtils.rm_f(output_file)
end
describe "when run on a basic profile" do