juju: github.com/wallyworld/juju/worker/logsender/logsendertest Index | Files

package logsendertest

import "github.com/wallyworld/juju/worker/logsender/logsendertest"

Package logsendertest provides testing utilities related to the logsender package.


Package Files


func ExpectLogStats Uses

func ExpectLogStats(c *gc.C, writer *logsender.BufferedLogWriter, expect logsender.LogStats)

ExpectLogStats waits for the buffered log writer's statistics to match the expected value. This is provided because statistics are updated after log messages are handed off to the sink, and so tests must cater for the gap or races will occur.

Package logsendertest imports 4 packages (graph). Updated 2016-11-04. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).