Skip to content

Commit

Permalink
Reverted accidental test code removal
Browse files Browse the repository at this point in the history
Due to the changes of influxdata#3162.
  • Loading branch information
Jan Willem Janssen committed Aug 25, 2017
1 parent 54ffb4f commit cb85a77
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugins/inputs/ntpq/ntpq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,22 @@ func TestBadWhenNTPQ(t *testing.T) {

acc := testutil.Accumulator{}
assert.Error(t, acc.GatherError(n.Gather))

fields := map[string]interface{}{
"poll": int64(256),
"reach": int64(37),
"delay": float64(51.016),
"offset": float64(233.010),
"jitter": float64(17.462),
}
tags := map[string]string{
"remote": "uschi5-ntp-002.",
"state_prefix": "*",
"refid": "10.177.80.46",
"stratum": "2",
"type": "u",
}
acc.AssertContainsTaggedFields(t, "ntpq", fields, tags)
}

// TestParserNTPQ - realated to:
Expand Down

0 comments on commit cb85a77

Please sign in to comment.