File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ func TestCalcTickInterval(t *testing.T) {
4848 assert .Equal (t , 30 * time .Second , sr .calcTickInterval ())
4949 })
5050
51- t .Run ("GCD floors to minimum 5s " , func (t * testing.T ) {
51+ t .Run ("GCD floors to minimum 1s " , func (t * testing.T ) {
5252 sr := & SourceReaper {
5353 md : & sources.SourceConn {
5454 Source : sources.Source {
5555 Metrics : metrics.MetricIntervals {"m1" : 3 , "m2" : 7 },
5656 },
5757 },
5858 }
59- assert .Equal (t , 5 * time .Second , sr .calcTickInterval ())
59+ assert .Equal (t , time .Second , sr .calcTickInterval ())
6060 })
6161
6262 t .Run ("single metric" , func (t * testing.T ) {
@@ -78,7 +78,7 @@ func TestCalcTickInterval(t *testing.T) {
7878 },
7979 },
8080 }
81- assert .Equal (t , 5 * time .Second , sr .calcTickInterval ())
81+ assert .Equal (t , time .Second , sr .calcTickInterval ())
8282 })
8383
8484 t .Run ("standby metrics when in recovery" , func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments