Alerting: Remove feature toggle for custom recovery threshold (#104455)
This commit is contained in:
@@ -15,7 +15,6 @@ import (
|
||||
|
||||
"github.com/grafana/grafana/pkg/expr/mathexp"
|
||||
"github.com/grafana/grafana/pkg/infra/tracing"
|
||||
"github.com/grafana/grafana/pkg/services/featuremgmt"
|
||||
"github.com/grafana/grafana/pkg/util"
|
||||
)
|
||||
|
||||
@@ -277,7 +276,7 @@ func TestUnmarshalThresholdCommand(t *testing.T) {
|
||||
QueryRaw: []byte(tc.query),
|
||||
QueryType: "",
|
||||
DataSource: nil,
|
||||
}, featuremgmt.WithFeatures(featuremgmt.FlagRecoveryThreshold))
|
||||
})
|
||||
|
||||
if tc.shouldError {
|
||||
require.Nil(t, cmd)
|
||||
@@ -466,7 +465,7 @@ func TestSetLoadedDimensionsToHysteresisCommand(t *testing.T) {
|
||||
cmd, err := UnmarshalThresholdCommand(&rawNode{
|
||||
RefID: "B",
|
||||
QueryRaw: raw,
|
||||
}, featuremgmt.WithFeatures(featuremgmt.FlagRecoveryThreshold))
|
||||
})
|
||||
require.NoError(t, err)
|
||||
|
||||
require.Equal(t, fingerprints, cmd.(*HysteresisCommand).LoadedDimensions)
|
||||
|
||||
Reference in New Issue
Block a user