Browse Source

dg nil check on TestGateway

Bruce Marriner 8 years ago
parent
commit
280ad2cdc3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      restapi_test.go

+ 3 - 0
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)