mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
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()