Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Add compatibility test
Browse files Browse the repository at this point in the history
  • Loading branch information
black-adder committed Feb 17, 2017
1 parent 66a3d21 commit 2685e4b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ package jaeger

import (
"testing"

"github.com/uber/jaeger-client-go/log"
)

func TestLogger(t *testing.T) {
Expand All @@ -30,3 +32,15 @@ func TestLogger(t *testing.T) {
logger.Error("Bad wolf")
}
}

func TestCompatibility(t *testing.T) {
for _, logger := range []log.Logger{StdLogger, NullLogger} {
logger.Infof("Hi %s", "there")
logger.Error("Bad wolf")
}

for _, logger := range []Logger{log.StdLogger, log.NullLogger} {
logger.Infof("Hi %s", "there")
logger.Error("Bad wolf")
}
}

0 comments on commit 2685e4b

Please sign in to comment.