Skip to content

Commit

Permalink
Fix logger for test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedwaleedmalik committed Apr 22, 2021
1 parent f57c5be commit 00bab60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ func TestAPIs(t *testing.T) {

var _ = BeforeSuite(func(done Done) {

logf.SetLogger(zap.LoggerTo(GinkgoWriter, true))

logger := zap.New(zap.UseDevMode(true), zap.WriteTo(GinkgoWriter))
logf.SetLogger(logger)

By("bootstrapping test environment")
testEnv = &envtest.Environment{
CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")},
Expand Down

0 comments on commit 00bab60

Please sign in to comment.