Skip to content

Commit

Permalink
fix the wrong execution status count metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Rick <1450685+LinuxSuRen@users.noreply.github.com>
  • Loading branch information
LinuxSuRen authored Jun 15, 2024
1 parent ce7e7bd commit 1306aff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/remote_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,9 @@ func (s *server) RunTestCase(ctx context.Context, in *TestCaseIdentity) (result
ExecutionCountNum.Inc()
defer func() {
if result.Error == "" {
ExecutionFailNum.Inc()
} else {
ExecutionSuccessNum.Inc()
} else {
ExecutionFailNum.Inc()
}
}()

Expand Down

0 comments on commit 1306aff

Please sign in to comment.