Files
snapd/testutil
Michael Vogt ee9452fe75 many: add logger.MockLogger() and use it in the tests (#3911)
We have two noisy tests in the unittest runs right now. Messages
get logged to stdout which really should not be visible. With the use
of the new logger.MockLogger() those are now no longer visible.

I also tweaked the existing pattern of:

    var logbuf bytes.Buffer
    l, err := logger.New(&logbuf, logger.DefaultFlags)
    c.Assert(err, IsNil)
    logger.SetLogger(l)

to just use:

    logbuf, restore := logger.MockLogger()
    defer restore()
2017-09-13 19:14:28 +02:00
..
2016-11-16 22:31:16 +00:00
2016-02-24 13:21:14 +01:00