Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #140 from Alrim42/develop
Browse files Browse the repository at this point in the history
Closes #47, updated medium test
  • Loading branch information
marcintao authored Jul 21, 2017
2 parents fc0d138 + b8da556 commit b504842
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions influxdb/influxdb_medium_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ limitations under the License.
package influxdb

import (
"math"
"net/http"
"os"
"strings"
Expand Down Expand Up @@ -251,6 +252,21 @@ func tests(scheme string, config plugin.Config) {
So(err, ShouldBeNil)
})

Convey("Publish NaN value of metric via "+scheme, func() {
metrics := []plugin.Metric{
{
Namespace: plugin.NewNamespace("nan"),
Timestamp: time.Now(),
Config: mcfg,
Tags: tags,
Unit: "nan unit",
Data: math.Log(-1.0),
},
}

So(func() { ip.Publish(metrics, config) }, ShouldNotPanic)
})

Convey("Publish multiple fields to one metric via "+scheme, func() {
config["isMultiFields"] = true
metrics := []plugin.Metric{
Expand Down

0 comments on commit b504842

Please sign in to comment.