diff --git a/logger_test.go b/logger_test.go index e345123..dea7013 100644 --- a/logger_test.go +++ b/logger_test.go @@ -488,7 +488,7 @@ func TestLogger(t *testing.T) { Output: &buf, }) - logger.Info("this is test", "bytes", Hex(12), "perms", Octal(0o755), "bits", Binary(5)) + logger.Info("this is test", "bytes", Hex(12), "perms", Octal(0755), "bits", Binary(5)) str := buf.String() dataIdx := strings.IndexByte(str, ' ') @@ -1079,7 +1079,7 @@ func TestLogger_JSON(t *testing.T) { JSONFormat: true, }) - logger.Info("this is test", "bytes", Hex(12), "perms", Octal(0o755), "bits", Binary(5)) + logger.Info("this is test", "bytes", Hex(12), "perms", Octal(0755), "bits", Binary(5)) b := buf.Bytes() @@ -1090,7 +1090,7 @@ func TestLogger_JSON(t *testing.T) { assert.Equal(t, "this is test", raw["@message"]) assert.Equal(t, float64(12), raw["bytes"]) - assert.Equal(t, float64(0o755), raw["perms"]) + assert.Equal(t, float64(0755), raw["perms"]) assert.Equal(t, float64(5), raw["bits"]) }) @@ -1231,6 +1231,7 @@ func TestLogger_JSON(t *testing.T) { assert.Equal(t, "[INFO] test: who=programmer why=testing\n", rest) }) + } type customErrJSON struct {