diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-09-23 17:13:27 -0400 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-09-23 17:13:27 -0400 |
commit | e4d25196b8f0a2fe9ba57c61a30a752608d507d5 (patch) | |
tree | d4f41a4f1f3c2e84df756c61b477d07b91342dc0 /group_test.go | |
parent | 717f77eeb3be68ba8328e04f90904070df687d3d (diff) |
Fixed output of group and scene test files.
Diffstat (limited to 'group_test.go')
-rw-r--r-- | group_test.go | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/group_test.go b/group_test.go index 58b74bc..41f612f 100644 --- a/group_test.go +++ b/group_test.go @@ -8,15 +8,20 @@ package hue import ( - "fmt" + "github.com/collinux/GoHue" "testing" ) func TestGetGroups(t *testing.T) { - bridge, _ := NewBridge("192.168.1.128") + bridges, err := hue.FindBridges() + if err != nil { + t.Fatal(err) + } + bridge := bridges[0] bridge.Login("427de8bd6d49f149c8398e4fc08f") - groups, _ := bridge.GetGroups() - for group := range groups { - fmt.Println(groups[group]) + groups, err := bridge.GetGroups() + if err != nil { + t.Fatal(err) } + t.Log(groups) } |