From 04d5c83dcd4abed00618b44d4078477360dbe4d5 Mon Sep 17 00:00:00 2001 From: "Jonathan A. Sternberg" Date: Thu, 17 May 2018 13:46:24 -0500 Subject: [PATCH] Fix the new top/bottom unit tests The new tests accidentally labeled the `p3` variable as the data type rather than a string. --- query/select_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/query/select_test.go b/query/select_test.go index 750df70493..32d7afb8dc 100644 --- a/query/select_test.go +++ b/query/select_test.go @@ -834,7 +834,7 @@ func TestSelect(t *testing.T) { fields: map[string]influxql.DataType{ "p1": influxql.Float, "p2": influxql.Float, - "p3": influxql.Float, + "p3": influxql.String, }, itrs: []query.Iterator{ &FloatIterator{Points: []query.FloatPoint{ @@ -855,7 +855,7 @@ func TestSelect(t *testing.T) { fields: map[string]influxql.DataType{ "p1": influxql.Integer, "p2": influxql.Integer, - "p3": influxql.Integer, + "p3": influxql.String, }, itrs: []query.Iterator{ &IntegerIterator{Points: []query.IntegerPoint{ @@ -876,7 +876,7 @@ func TestSelect(t *testing.T) { fields: map[string]influxql.DataType{ "p1": influxql.Unsigned, "p2": influxql.Unsigned, - "p3": influxql.Unsigned, + "p3": influxql.String, }, itrs: []query.Iterator{ &UnsignedIterator{Points: []query.UnsignedPoint{ @@ -1174,7 +1174,7 @@ func TestSelect(t *testing.T) { fields: map[string]influxql.DataType{ "p1": influxql.Float, "p2": influxql.Float, - "p3": influxql.Float, + "p3": influxql.String, }, itrs: []query.Iterator{ &FloatIterator{Points: []query.FloatPoint{ @@ -1195,7 +1195,7 @@ func TestSelect(t *testing.T) { fields: map[string]influxql.DataType{ "p1": influxql.Integer, "p2": influxql.Integer, - "p3": influxql.Integer, + "p3": influxql.String, }, itrs: []query.Iterator{ &IntegerIterator{Points: []query.IntegerPoint{ @@ -1216,7 +1216,7 @@ func TestSelect(t *testing.T) { fields: map[string]influxql.DataType{ "p1": influxql.Unsigned, "p2": influxql.Unsigned, - "p3": influxql.Unsigned, + "p3": influxql.String, }, itrs: []query.Iterator{ &UnsignedIterator{Points: []query.UnsignedPoint{