Skip to content

Instantly share code, notes, and snippets.

@dctrwatson
Created February 27, 2014 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dctrwatson/9261368 to your computer and use it in GitHub Desktop.
Save dctrwatson/9261368 to your computer and use it in GitHub Desktop.
2014/02/27 14:50:54 missing unit separator
2014/02/27 14:50:54 missing call(s) to *pipeline.MockPluginHelper.PipelineConfig()
2014/02/27 14:50:54 missing call(s) to *pipeline.MockInputRunner.InChan()
2014/02/27 14:50:54 missing call(s) to *pipeline.MockInputRunner.Inject(is equal to &{[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
...
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] severity:7 0xc210087400 false 1 0 0xc210060fc0})
2014/02/27 14:50:54 missing call(s) to *pipeline.MockInputRunner.Ticker()
2014/02/27 14:50:54 aborting test due to missing call(s)
c.Specify("emits proper idle stats", func() {
prepareSendingStats()
sendGauge("sample.gauge", 1, 2)
sendCounter("sample.cnt", 1, 2, 3, 4, 5)
sendTimer("sample.timer", 10, 10, 20, 20)
statAccumInput.Flush()
ith.Pack.Recycle()
ith.PackSupply <- ith.Pack
msg := finalizeSendingStats()
validateValueAtKey(msg, "stats.gauges.sample.gauge", int64(2))
validateValueAtKey(msg, "stats.counters.sample.cnt.count", 0)
validateValueAtKey(msg, "stats.timers.sample.timer.count", 0)
validateValueAtKey(msg, "stats.statsd.numStats", int64(3))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment