Permalink
Browse files

fix: tests

  • Loading branch information...
z0mbie42 committed Feb 9, 2019
1 parent a12d860 commit d6d2ddd6b1779ab38c32b9347038bbe189f10313
Showing with 4 additions and 4 deletions.
  1. +1 −1 log/log_example_test.go
  2. +1 −1 logger_example_test.go
  3. +1 −1 logger_test.go
  4. +1 −1 writer_test.go
@@ -51,7 +51,7 @@ func ExampleWarn() {
setup()
log.Warn("hello world", nil)

// Output: {"level":"warn","timestamp":1199811905,"message":"hello world"}
// Output: {"level":"warning","timestamp":1199811905,"message":"hello world"}
}

// Example of a log at a particular "level" (in this case, "error")
@@ -114,7 +114,7 @@ func ExampleWith() {
// Str("foo", "bar").
// Msg("a warning message")

// // Output: {"level":"warn","foo":"bar","message":"a warning message"}
// // Output: {"level":"warning","foo":"bar","message":"a warning message"}
// }

// func ExampleLogger_Error() {
@@ -511,7 +511,7 @@ func TestLevelWriter(t *testing.T) {
}{
{DebugLevel, `{"level":"debug","message":"1"}` + "\n"},
{InfoLevel, `{"level":"info","message":"2"}` + "\n"},
{WarnLevel, `{"level":"warn","message":"3"}` + "\n"},
{WarnLevel, `{"level":"warning","message":"3"}` + "\n"},
{ErrorLevel, `{"level":"error","message":"4"}` + "\n"},
{NoLevel, `{"message":"nolevel-1"}` + "\n"},
}
@@ -13,7 +13,7 @@ package rz
// want := []syslogEvent{
// {"Debug", `{"level":"debug","message":"debug"}` + "\n"},
// {"Info", `{"level":"info","message":"info"}` + "\n"},
// {"Warning", `{"level":"warn","message":"warn"}` + "\n"},
// {"Warning", `{"level":"warning","message":"warn"}` + "\n"},
// {"Err", `{"level":"error","message":"error"}` + "\n"},
// {"Info", `{"message":"nolevel"}` + "\n"},
// }

0 comments on commit d6d2ddd

Please sign in to comment.