Files
atlantis/server/scheduled/runtime_stats_test.go
Ken Kaizu da48fb515d chore(test): add no test dir tests, rename testdata dir (#2986)
* add web_templates render tests

* add ansic strip tests

* move fixtures into testdata dir which is golang specific test dir name

* add server/metrics tests

* add recovery test

* add runtime stats test
2023-01-15 23:14:23 -06:00

19 lines
373 B
Go

package scheduled
import (
"testing"
"github.com/uber-go/tally"
)
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()))
}
}