Skip to content

Commit

Permalink
Minimal nicing
Browse files Browse the repository at this point in the history
  • Loading branch information
crazygreenpenguin committed Feb 29, 2020
1 parent c13a757 commit 9aa8dee
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions graphite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@ func TestNew_ProtocolTCP(t *testing.T) {
var tcpServer Graphite
var l net.Listener

conf := &Config{
Address: "127.0.0.1:3300",
Prefix: "test",
Protocol: ProtocolTCP,
Timeout: 10 * time.Second,
}

tcpServer, err = New(conf)
if err == nil {
t.Fail()
}

l, err = net.Listen("tcp", "127.0.0.1:3300")
if err != nil {
t.Error(err)
Expand All @@ -52,6 +40,13 @@ func TestNew_ProtocolTCP(t *testing.T) {
}
}()

conf := &Config{
Address: "127.0.0.1:3300",
Prefix: "test",
Protocol: ProtocolTCP,
Timeout: 10 * time.Second,
}

tcpServer, err = New(conf)
if err != nil {
t.Fail()
Expand Down

0 comments on commit 9aa8dee

Please sign in to comment.