From ff8618f2046049c796ec6477ba3a0865dd3244d0 Mon Sep 17 00:00:00 2001 From: Cory LaNou Date: Fri, 9 Jan 2015 20:14:58 -0700 Subject: [PATCH] cleaning up a test --- collectd/collectd_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/collectd/collectd_test.go b/collectd/collectd_test.go index 50437afc25..45d3f75939 100644 --- a/collectd/collectd_test.go +++ b/collectd/collectd_test.go @@ -60,15 +60,13 @@ func TestServer_ListenAndServe_Success(t *testing.T) { var ( ts testServer // You can typically find this on your mac here: "/usr/local/Cellar/collectd/5.4.1/share/collectd/types.db" - //s = collectd.NewServer(ts, "/usr/local/Cellar/collectd/5.4.1/share/collectd/types.db") - s = collectd.NewServer(ts, "./collectd_test.conf") - err error + s = collectd.NewServer(ts, "./collectd_test.conf") ) s.Database = "counter" e := s.ListenAndServe("127.0.0.1:25830") defer s.Close() - if e != err { + if e != nil { t.Fatalf("err does not match. expected %v, got %v", err, e) } }