forked from rosa/hakurei
message: rename NewMsg to New
Should have done this when relocating this from container. Now is a good time to rename it before v0.3.x. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -761,7 +761,7 @@ func TestPrintPs(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
var printBuf, logBuf bytes.Buffer
|
||||
msg := message.NewMsg(log.New(&logBuf, "check: ", 0))
|
||||
msg := message.New(log.New(&logBuf, "check: ", 0))
|
||||
msg.SwapVerbose(true)
|
||||
printPs(msg, &printBuf, testTime, s, tc.short, tc.json)
|
||||
if got := printBuf.String(); got != tc.want {
|
||||
|
||||
Reference in New Issue
Block a user