dg nil check on TestGateway
This commit is contained in:
parent
2b7da95627
commit
280ad2cdc3
1 changed files with 3 additions and 0 deletions
|
@ -137,6 +137,9 @@ func TestLogout(t *testing.T) {
|
||||||
|
|
||||||
func TestGateway(t *testing.T) {
|
func TestGateway(t *testing.T) {
|
||||||
|
|
||||||
|
if dg == nil {
|
||||||
|
t.Skip("Skipping, dg not set.")
|
||||||
|
}
|
||||||
_, err := dg.Gateway()
|
_, err := dg.Gateway()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Gateway() returned error: %+v", err)
|
t.Errorf("Gateway() returned error: %+v", err)
|
||||||
|
|
Loading…
Reference in a new issue