mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
Merge pull request #5117 from james-stocks/js/fix_html2_tests
Address test:isolated failure
This commit is contained in:
commit
82389b61cc
2 changed files with 3 additions and 1 deletions
1
Rakefile
1
Rakefile
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue