Files
atlantis/server/scheduled/runtime_stats_test.go
2023-06-08 21:57:46 -04:00

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()))
}
}