aboutsummaryrefslogtreecommitdiff
path: root/light_test.go
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-07 20:49:51 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-07 20:49:51 -0500
commita05574836d277a8ca3c75ab3a7b7b9a1e1081faa (patch)
treef34e7e1761c4108e2daa417acc897a06892af33f /light_test.go
parent7df767996b0b8d7daab32cf43585a97437261df8 (diff)
Simplified light.On/Off and added error returns.
Diffstat (limited to 'light_test.go')
-rw-r--r--light_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/light_test.go b/light_test.go
index 6c85eff..0298312 100644
--- a/light_test.go
+++ b/light_test.go
@@ -22,11 +22,11 @@ func TestSetLightState(t *testing.T) {
lights, _ := GetAllLights(bridge)
selectedLight := lights[0]
- selectedLight.TurnOn()
+ selectedLight.On()
time.Sleep(time.Second)
- selectedLight.TurnOff()
+ selectedLight.Off()
time.Sleep(time.Second)
- selectedLight.TurnOn()
+ selectedLight.On()
time.Sleep(time.Second)
selectedLight.Toggle()
time.Sleep(time.Second)