Skip to content

Commit 61a0981

Browse files
committed
Update the spec to accept the failure
1 parent 5c2056b commit 61a0981

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spec/acceptance/ldap_spec.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@
9898
required: [
9999
/Successfully queried/
100100
]
101+
},
102+
linux: {
103+
known_failures: [
104+
/Auxiliary aborted due to failure: not-found/
105+
]
101106
}
102107
}
103108
},
@@ -187,7 +192,7 @@ def with_test_harness(module_test)
187192
# Skip any ignored lines from the validation input
188193
validated_lines = test_result.lines.reject do |line|
189194
is_acceptable = known_failures.any? do |acceptable_failure|
190-
is_matching_line = is_matching_line.value.is_a?(Regexp) ? line.match?(acceptable_failure.value) : line.include?(acceptable_failure.value)
195+
is_matching_line = acceptable_failure.value.is_a?(Regexp) ? line.match?(acceptable_failure.value) : line.include?(acceptable_failure.value)
191196
is_matching_line &&
192197
acceptable_failure.if?(test_environment)
193198
end || line.match?(/Passed: \d+; Failed: \d+/)

0 commit comments

Comments
 (0)