Skip to content

Commit 7429434

Browse files
committed
Shared: Adjust semantics of optional inline expectation tags
1 parent 1ba9601 commit 7429434

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

shared/util/codeql/util/test/InlineExpectationsTest.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ module Make<InlineExpectationsTestSig Impl> {
223223
exists(ValidTestExpectation expectation |
224224
not exists(ActualTestResult actualResult | expectation.matchesActualResult(actualResult)) and
225225
expectation.getTag() = TestImpl::getARelevantTag() and
226-
element = expectation and
227-
not expectation.isOptional()
226+
element = expectation
228227
|
229228
expectation instanceof GoodTestExpectation and
230229
message = "Missing result: " + expectation.getExpectationText()

0 commit comments

Comments
 (0)