Skip to content

Commit

Permalink
Remove the variadic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
robskillington committed Nov 20, 2020
1 parent 67fed59 commit 0765cff
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/query/graphite/native/compiler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,6 @@ func TestCompileErrors(t *testing.T) {
{"aliasByNode()",
"invalid expression 'aliasByNode()': invalid number of arguments for aliasByNode;" +
" expected at least 2, received 0"},
{"aliasByNode(foo.*.zed)", // check that at least 1 param is provided for variadic args
"invalid expression 'aliasByNode(foo.*.zed)': invalid number of arguments for " +
"aliasByNode; expected at least 2, received 1"},
{"aliasByNode(foo.*.zed, 2, false)",
"invalid expression 'aliasByNode(foo.*.zed, 2, false)': invalid function call " +
"aliasByNode, arg 2: expected a int, received 'false'"},
Expand All @@ -327,9 +324,6 @@ func TestCompileErrors(t *testing.T) {
{"summarize(foo.bar.baz.quux)",
"invalid expression 'summarize(foo.bar.baz.quux)':" +
" invalid number of arguments for summarize; expected 4, received 1"},
{"sumSeries()", // check that at least 1 series is provided for variadic timeSeriesList
"invalid expression 'sumSeries()': invalid number of arguments for sumSeries;" +
" expected at least 1, received 0"},
{"sumSeries(foo.bar.baz.quux,)",
"invalid expression 'sumSeries(foo.bar.baz.quux,)': invalid function call sumSeries, " +
"arg 1: invalid expression 'sumSeries(foo.bar.baz.quux,)': ) not valid"},
Expand Down

0 comments on commit 0765cff

Please sign in to comment.