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

package logsendertest

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

Package logsendertest provides testing utilities related to the logsender package.

Index

Package Files

logsendertest.go

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 2017-01-31. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).