Skip to content

Commit 5796696

Browse files
committed
filters
1 parent 205c809 commit 5796696

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CodeQLToolkit.Features.Test/Commands/Targets/ValidateUnitTestsCommand.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ public override void Run()
127127
}
128128
}
129129

130-
if (unitTestResults.Select(x => x.pass == false).Count() > 0)
130+
var failedTests = unitTestResults.Select(x=>x).Where(x=>x.pass==false).ToArray();
131+
132+
if (failedTests.Length > 0)
131133
{
132134
DieWithError("One or more failures during run unit tests.");
133135
}

0 commit comments

Comments
 (0)