Skip to content

Commit cb72436

Browse files
committed
Tests should not leak benchmark
1 parent 133916f commit cb72436

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/xccdf/benchmark_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def test_items_references
9494
:href => 'http://iase.disa.mil/cci/index.html',
9595
:html_link => "<a href='http://iase.disa.mil/cci/index.html'>1263</a>" }]
9696
assert_equal(expected_references, install_hids_rule.references.map(&:to_hash), 'Install hids references should be equal')
97+
b.destroy
9798
end
9899

99100
def test_items_fixes
@@ -108,6 +109,7 @@ def test_items_fixes
108109
}]
109110
assert_equal(expected_content, login_defs_rule.fixes.map(&:content), 'Fix content should match')
110111
assert_equal(expected_hashes, login_defs_rule.fixes.map(&:to_hash), 'Fix hash should match')
112+
b.destroy
111113
end
112114

113115
private

0 commit comments

Comments
 (0)