Skip to content

Commit

Permalink
Merge pull request #430 from ayuryshev/bug/multiple-definitions-of-Te…
Browse files Browse the repository at this point in the history
…stMain-in-dmsg

Bug: double definition of TestMain in dmsg
  • Loading branch information
ivcosla authored Jun 26, 2019
2 parents ece6963 + a8d307b commit 94f7f87
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 94f7f87

Please sign in to comment.