From 481b3668c344e04cc9073fc14f47d801c9905b4f Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sun, 23 Jun 2019 11:43:54 -0600 Subject: [PATCH] m: fix tests after having modified initializing logging --- m/m_test.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/m/m_test.go b/m/m_test.go index b59e8f5..bfa73db 100644 --- a/m/m_test.go +++ b/m/m_test.go @@ -35,13 +35,16 @@ func TestServiceCtx(t *T) { mlog.From(cmpA).Info("foo") mlog.From(cmpA).Debug("bar") massert.Require(t, - massert.Length(msgs, 2), - massert.Equal(msgs[0].Level.String(), "INFO"), - massert.Equal(msgs[0].Description, "foo"), - massert.Equal(msgs[0].Contexts, []context.Context{cmpA.Context()}), - massert.Equal(msgs[1].Level.String(), "DEBUG"), - massert.Equal(msgs[1].Description, "bar"), + massert.Length(msgs, 3), + massert.Equal(msgs[0].Level.String(), "DEBUG"), + massert.Equal(msgs[0].Description, "initialization completed successfully"), + massert.Equal(msgs[0].Contexts, []context.Context{cmp.Context()}), + massert.Equal(msgs[1].Level.String(), "INFO"), + massert.Equal(msgs[1].Description, "foo"), massert.Equal(msgs[1].Contexts, []context.Context{cmpA.Context()}), + massert.Equal(msgs[2].Level.String(), "DEBUG"), + massert.Equal(msgs[2].Description, "bar"), + massert.Equal(msgs[2].Contexts, []context.Context{cmpA.Context()}), ) }) }