Skip to content

Commit

Permalink
add line to indicate failure on non-negative assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
EasterTheBunny committed Jan 9, 2024
1 parent 9a29a61 commit a35b61e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/simulator/telemetry/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func (t *ProgressTelemetry) track(namespace string, total int64, chIncrements ch
}

if tracker.Value() != total {
t.failed.Add(1)
tracker.MarkAsErrored()
}
}
Expand All @@ -142,6 +143,7 @@ func (t *ProgressTelemetry) checkProgress() {
// wait for all trackers to complete
time.Sleep(500 * time.Millisecond)

ticker.Stop()
t.writer.Stop()
}
}
Expand Down

0 comments on commit a35b61e

Please sign in to comment.