From beeab2c50963f60c89deefdec409324cf0012352 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Tue, 3 Apr 2018 16:56:44 -0700 Subject: [PATCH] Sort field names when running --test --- internal/models/running_input.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/models/running_input.go b/internal/models/running_input.go index 9cf4f6136..ffe0b5f59 100644 --- a/internal/models/running_input.go +++ b/internal/models/running_input.go @@ -77,6 +77,7 @@ func (r *RunningInput) MakeMetric( if r.trace && m != nil { s := influx.NewSerializer() + s.SetFieldSortOrder(influx.SortFields) octets, err := s.Serialize(m) if err == nil { fmt.Print("> " + string(octets))