Skip to content

Commit ea6f704

Browse files
author
Eoin Campbell
committed
Fix for OnFailure Hook Event returning Valid (instead of Invalid) results
1 parent e5de945 commit ea6f704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Warden/Core/IIterationProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private async Task InvokeAggregatedOnFirstSuccessHooksAsync(IEnumerable<WatcherE
248248

249249
private async Task InvokeAggregatedOnFailureHooksAsync(IEnumerable<WatcherExecutionResult> results)
250250
{
251-
var invalidResults = results.Select(x => x.WardenCheckResult).Where(x => x.IsValid);
251+
var invalidResults = results.Select(x => x.WardenCheckResult).Where(x => !x.IsValid);
252252
_logger.Trace("Executing Aggregated Global Watcher hooks OnFailure.");
253253
_configuration.AggregatedGlobalWatcherHooks.OnFailure.Execute(invalidResults);
254254
_logger.Trace("Executing Aggregated Global Watcher hooks OnFailureAsync.");

0 commit comments

Comments
 (0)