Skip to content

Commit

Permalink
another fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Redozubov committed Nov 18, 2024
1 parent 0566421 commit ffee49b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions expr/functions/countValues/function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"testing"
"time"

"github.com/go-graphite/carbonapi/expr/helper"
"github.com/go-graphite/carbonapi/expr/metadata"
"github.com/go-graphite/carbonapi/expr/types"
"github.com/go-graphite/carbonapi/pkg/parser"
Expand Down Expand Up @@ -112,9 +111,9 @@ func TestCountValues(t *testing.T) {
}

for _, tt := range tests {
testName := tt.E.Target() + "(" + tt.E.RawArgs() + ")"
t.Run(testName, func(t *testing.T) {
th.TestMultiReturnEvalExpr(t, &tt)
t.Run(tt.Target, func(t *testing.T) {
eval := th.EvaluatorFromFunc(md[0].F)

Check failure on line 115 in expr/functions/countValues/function_test.go

View workflow job for this annotation

GitHub Actions / Test code (^1.21)

undefined: md

Check failure on line 115 in expr/functions/countValues/function_test.go

View workflow job for this annotation

GitHub Actions / Test code (^1.22)

undefined: md

Check failure on line 115 in expr/functions/countValues/function_test.go

View workflow job for this annotation

GitHub Actions / Test code (^1)

undefined: md
th.TestEvalExprWithRange(t, eval, &tt)

Check failure on line 116 in expr/functions/countValues/function_test.go

View workflow job for this annotation

GitHub Actions / Test code (^1.21)

cannot use &tt (value of type *tests.MultiReturnEvalTestItem) as *tests.EvalTestItemWithRange value in argument to th.TestEvalExprWithRange

Check failure on line 116 in expr/functions/countValues/function_test.go

View workflow job for this annotation

GitHub Actions / Test code (^1.22)

cannot use &tt (value of type *tests.MultiReturnEvalTestItem) as *tests.EvalTestItemWithRange value in argument to th.TestEvalExprWithRange

Check failure on line 116 in expr/functions/countValues/function_test.go

View workflow job for this annotation

GitHub Actions / Test code (^1)

cannot use &tt (value of type *tests.MultiReturnEvalTestItem) as *tests.EvalTestItemWithRange value in argument to th.TestEvalExprWithRange
})
}

Expand Down

0 comments on commit ffee49b

Please sign in to comment.