Expression: Fix a bug of the display name of the threshold expression result (#85912)
* replace ReferenceVar with RefID when creating the math command for the ThresholdCommand * Fix the Hysteresis test
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
|
||||
func TestHysteresisExecute(t *testing.T) {
|
||||
number := func(label string, value float64) mathexp.Number {
|
||||
n := mathexp.NewNumber("A", data.Labels{"label": label})
|
||||
n := mathexp.NewNumber("B", data.Labels{"label": label})
|
||||
n.SetValue(&value)
|
||||
return n
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user