Skip to content

Commit

Permalink
[backend] Fix enum comparison on inject status
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 authored Nov 14, 2024
1 parent 9d322a1 commit b0bea51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ public enum ExecutionStatus {
SUCCESS,
ERROR,
MAYBE_PREVENTED,

DRAFT,
QUEUING,
EXECUTING,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public static InjectStatus fromExecution(Execution execution, Inject executedInj
int numberOfError =
(int)
execution.getTraces().stream()
.filter(ex -> ex.getStatus().equals(ExecutionStatus.ERROR))
.filter(ex -> ExecutionTraceStatus.ERROR.equals(ex.getStatus()))
.count();
int numberOfSuccess =
(int)
execution.getTraces().stream()
.filter(ex -> ex.getStatus().equals(ExecutionStatus.SUCCESS))
.filter(ex -> ExecutionTraceStatus.SUCCESS.equals(ex.getStatus()))
.count();
injectStatus.setTrackingTotalError(numberOfError);
injectStatus.setTrackingTotalSuccess(numberOfSuccess);
Expand Down

0 comments on commit b0bea51

Please sign in to comment.