From c9b7f8603e3099d559ad579c71c2b7a3972a43a7 Mon Sep 17 00:00:00 2001 From: bergquist Date: Fri, 2 Dec 2016 23:43:02 +0100 Subject: [PATCH] tech(): replace spaces to handle input more graceful --- pkg/tsdb/testdata/scenarios.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/tsdb/testdata/scenarios.go b/pkg/tsdb/testdata/scenarios.go index 73963fc9844..667b7fffcba 100644 --- a/pkg/tsdb/testdata/scenarios.go +++ b/pkg/tsdb/testdata/scenarios.go @@ -90,6 +90,8 @@ func init() { queryRes := tsdb.NewQueryResult() stringInput := query.Model.Get("stringInput").MustString() + stringInput = strings.Replace(stringInput, " ", "", -1) + values := []null.Float{} for _, strVal := range strings.Split(stringInput, ",") { if strVal == "null" {