Skip to content

Commit

Permalink
Removed TestMain from pkg/dmsg/client_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuryshev committed Jun 25, 2019
1 parent ece6963 commit a8d307b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions pkg/dmsg/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package dmsg

import (
"context"
"log"
"net"
"os"
"testing"
"time"

Expand All @@ -23,21 +21,6 @@ type transportWithError struct {
err error
}

func TestMain(m *testing.M) {
loggingLevel, ok := os.LookupEnv("TEST_LOGGING_LEVEL")
if ok {
lvl, err := logging.LevelFromString(loggingLevel)
if err != nil {
log.Fatal(err)
}
logging.SetLevel(lvl)
} else {
logging.Disable()
}

os.Exit(m.Run())
}

func TestClient(t *testing.T) {
logger := logging.MustGetLogger("dms_client")

Expand Down

0 comments on commit a8d307b

Please sign in to comment.