chore: fix some typos in test file

Signed-off-by: writegr <wellweek@outlook.com>
This commit is contained in:
writegr 2024-04-18 12:13:05 +08:00
parent 0da69e84c0
commit 69e4cbbb7d

View file

@ -26,7 +26,7 @@ func TestLoggingWithVmodule(t *testing.T) {
logger.Trace("a message", "foo", "bar") logger.Trace("a message", "foo", "bar")
have := out.String() have := out.String()
// The timestamp is locale-dependent, so we want to trim that off // The timestamp is locale-dependent, so we want to trim that off
// "INFO [01-01|00:00:00.000] a messag ..." -> "a messag..." // "INFO [01-01|00:00:00.000] a message ..." -> "a message..."
have = strings.Split(have, "]")[1] have = strings.Split(have, "]")[1]
want := " a message foo=bar\n" want := " a message foo=bar\n"
if have != want { if have != want {
@ -42,7 +42,7 @@ func TestTerminalHandlerWithAttrs(t *testing.T) {
logger.Trace("a message", "foo", "bar") logger.Trace("a message", "foo", "bar")
have := out.String() have := out.String()
// The timestamp is locale-dependent, so we want to trim that off // The timestamp is locale-dependent, so we want to trim that off
// "INFO [01-01|00:00:00.000] a messag ..." -> "a messag..." // "INFO [01-01|00:00:00.000] a message ..." -> "a message..."
have = strings.Split(have, "]")[1] have = strings.Split(have, "]")[1]
want := " a message baz=bat foo=bar\n" want := " a message baz=bat foo=bar\n"
if have != want { if have != want {