mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 15:51:30 +00:00
metrics: gofmt issuance_metrics_test.go — fix CI
Trivial whitespace fix: gofmt collapsed three trailing-comment columns that I'd hand-aligned in the test file. Local sandbox missed this because the per-file gofmt run earlier in the commit cycle was scoped to the changed-files list and didn't include the test file at the final write moment; CI's project-wide `gofmt -l .` caught it. Behavior unchanged.
This commit is contained in:
@@ -22,9 +22,9 @@ func TestIssuanceMetrics_RecordAndSnapshot(t *testing.T) {
|
||||
m := NewIssuanceMetrics(DefaultIssuanceBucketBoundaries)
|
||||
|
||||
// Record three issuances: two success (one fast, one slow), one failure.
|
||||
m.RecordIssuance("local", "success", 50*time.Millisecond) // 0.05 bucket
|
||||
m.RecordIssuance("local", "success", 2*time.Second) // 2.5 bucket
|
||||
m.RecordIssuance("digicert", "failure", 90*time.Second) // 120 bucket
|
||||
m.RecordIssuance("local", "success", 50*time.Millisecond) // 0.05 bucket
|
||||
m.RecordIssuance("local", "success", 2*time.Second) // 2.5 bucket
|
||||
m.RecordIssuance("digicert", "failure", 90*time.Second) // 120 bucket
|
||||
m.RecordFailure("digicert", "rate_limited")
|
||||
|
||||
counters := m.SnapshotCounters()
|
||||
|
||||
Reference in New Issue
Block a user