From 280ad2cdc3d0d867aa3417b34c8f1437856895ee Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Mon, 25 Apr 2016 20:16:18 -0500 Subject: [PATCH] dg nil check on TestGateway --- restapi_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/restapi_test.go b/restapi_test.go index b67424d..c35c457 100644 --- a/restapi_test.go +++ b/restapi_test.go @@ -137,6 +137,9 @@ func TestLogout(t *testing.T) { func TestGateway(t *testing.T) { + if dg == nil { + t.Skip("Skipping, dg not set.") + } _, err := dg.Gateway() if err != nil { t.Errorf("Gateway() returned error: %+v", err)