From d8e3de68c4830962dcd531e96e5de1e456e4e1af Mon Sep 17 00:00:00 2001 From: Vladimir Lopes Date: Wed, 13 May 2015 16:13:37 -0300 Subject: [PATCH] Check for nil response on Client write test --- client/influxdb_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/influxdb_test.go b/client/influxdb_test.go index 235521c12c..8cb413df6a 100644 --- a/client/influxdb_test.go +++ b/client/influxdb_test.go @@ -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) {