Final Graphite test code fixes

pull/2829/head
Philip O'Toole 2015-06-08 20:39:56 -07:00
parent 9d628320c2
commit 4769d65f23
1 changed files with 2 additions and 8 deletions

View File

@ -232,9 +232,6 @@ func Test_DecodeMetric(t *testing.T) {
func Test_ServerGraphiteTCP(t *testing.T) { func Test_ServerGraphiteTCP(t *testing.T) {
t.Parallel() t.Parallel()
if testing.Short() {
t.Skip()
}
now := time.Now().UTC().Round(time.Second) now := time.Now().UTC().Round(time.Second)
@ -282,7 +279,7 @@ func Test_ServerGraphiteTCP(t *testing.T) {
} }
// Connect to the graphite endpoint we just spun up // Connect to the graphite endpoint we just spun up
conn, err := net.Dial("tcp", strings.TrimPrefix(service.Host(), "[::]")) conn, err := net.Dial("tcp", strings.TrimPrefix(service.Addr().String(), "[::]"))
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
@ -300,9 +297,6 @@ func Test_ServerGraphiteTCP(t *testing.T) {
func Test_ServerGraphiteUDP(t *testing.T) { func Test_ServerGraphiteUDP(t *testing.T) {
t.Parallel() t.Parallel()
if testing.Short() {
t.Skip()
}
now := time.Now().UTC().Round(time.Second) now := time.Now().UTC().Round(time.Second)
@ -351,7 +345,7 @@ func Test_ServerGraphiteUDP(t *testing.T) {
} }
// Connect to the graphite endpoint we just spun up // Connect to the graphite endpoint we just spun up
conn, err := net.Dial("udp", strings.TrimPrefix(service.Host(), "[::]")) conn, err := net.Dial("udp", strings.TrimPrefix(service.Addr().String(), "[::]"))
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }