mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-30 02:57:57 +00:00
19 lines
382 B
Go
19 lines
382 B
Go
package scheduled
|
|
|
|
import (
|
|
"testing"
|
|
|
|
tally "github.com/uber-go/tally/v4"
|
|
)
|
|
|
|
func TestRuntimeStatCollector_Run(t *testing.T) {
|
|
scope := tally.NewTestScope("test", nil)
|
|
r := NewRuntimeStats(scope)
|
|
r.Run()
|
|
|
|
expGaugeCount := 25
|
|
if len(scope.Snapshot().Gauges()) != expGaugeCount {
|
|
t.Errorf("Expected %d gauges but got %d", expGaugeCount, len(scope.Snapshot().Gauges()))
|
|
}
|
|
}
|