aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-01-28 00:25:31 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-01-28 00:25:31 -0500
commited41392d4253a3af6069871c4ea894db5529c230 (patch)
treec9d8d3c7e629277f94c95c21e12348fd631df4c3
parent7afac327af365967b53051f7d26351e60334373e (diff)
Cleaned up unit tests.
-rw-r--r--bridge_test.go7
-rw-r--r--lights_test.go7
2 files changed, 3 insertions, 11 deletions
diff --git a/bridge_test.go b/bridge_test.go
index d790c74..b9b0137 100644
--- a/bridge_test.go
+++ b/bridge_test.go
@@ -1,16 +1,13 @@
package hue
import (
- "log"
"testing"
)
func TestNewBridge(t *testing.T) {
- bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207")
- log.Println(bridge)
+ NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207")
}
func TestCreateUser(t *testing.T) {
- user, _ := CreateUser(NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207"), "linux")
- log.Println(user)
+ CreateUser(NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207"), "linux")
}
diff --git a/lights_test.go b/lights_test.go
index ac73d2e..5639630 100644
--- a/lights_test.go
+++ b/lights_test.go
@@ -2,7 +2,6 @@ package hue
import (
"testing"
- "log"
)
func TestGetAllLights(t *testing.T) {
@@ -12,9 +11,5 @@ func TestGetAllLights(t *testing.T) {
func TestGetLight(t *testing.T) {
bridge := NewBridge("192.168.1.128", "319b36233bd2328f3e40731b23479207")
- light , err := GetLight(bridge, "Bathroom Light")
- if err != nil {
- trace("", err)
- }
- log.Println("LIGHT: ", light)
+ GetLight(bridge, "Bathroom Light")
}