aboutsummaryrefslogtreecommitdiff
path: root/light_test.go
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-13 11:35:29 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-13 11:35:29 -0500
commitd676089ff95cef488963555e75929da20326f612 (patch)
treeaa2e80a4f2db3dc31a5eb56ca4fe85c61df21fb4 /light_test.go
parent922e7290c37e46046b1a4e68818c77c44a192b2e (diff)
Cleaned up documentation and tests.
Diffstat (limited to 'light_test.go')
-rw-r--r--light_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/light_test.go b/light_test.go
index 9f8f140..8961666 100644
--- a/light_test.go
+++ b/light_test.go
@@ -26,8 +26,7 @@ func TestGetLightByName(t *testing.T) {
func TestSetLightState(t *testing.T) {
fmt.Println("\nTESTING LIGHT STATE:\n\n")
bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207")
- lights, _ := GetAllLights(bridge)
- selectedLight := lights[5]
+ selectedLight, _ := GetLightByIndex(bridge, 7)
selectedLight.On()
time.Sleep(time.Second)