Check for nil response on Client write test
parent
4b4aaf24ab
commit
d8e3de68c4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue