Skip to content

Commit

Permalink
Clean up integ tests
Browse files Browse the repository at this point in the history
alextwoods authored and kstich committed Nov 28, 2022
1 parent d2cc66c commit 31ddf68
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -123,10 +123,9 @@ void executeTestSuite(TestDiscovery.RulesTestCase testcase) {
@MethodSource("invalidTestCases")
void checkInvalidRules(ValidationTestCase validationTestCase) throws IOException {
RuleError error = assertThrows(RuleError.class, () -> {
EndpointRuleSet ruleset = EndpointRuleSet.fromNode(validationTestCase.contents());
ruleset.typeCheck(new Scope<>());
EndpointRuleSet.fromNode(validationTestCase.contents());
});
// validationTestCase.overrideComments(error.toString());
//validationTestCase.overrideComments(error.toString());
assertEquals(
validationTestCase.comments().replaceAll("\\s+", " ").trim(),
error.toString().replaceAll("\\s+", " ").trim());

0 comments on commit 31ddf68

Please sign in to comment.