Check for nil response on Client write test

pull/2558/head
Vladimir Lopes 2015-05-13 16:13:37 -03:00
parent 4b4aaf24ab
commit d8e3de68c4
1 changed files with 4 additions and 1 deletions

View File

@ -113,10 +113,13 @@ func TestClient_Write(t *testing.T) {
}
bp := client.BatchPoints{}
_, err = c.Write(bp)
r, err := c.Write(bp)
if err != nil {
t.Fatalf("unexpected error. expected %v, actual %v", nil, err)
}
if r != nil {
t.Fatalf("unexpected response. expected %v, actual %v", nil, r)
}
}
func TestClient_UserAgent(t *testing.T) {