Fix tests
parent
03f7ac8468
commit
3cb36dff1e
|
@ -7,14 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetDevices(t *testing.T) {
|
func TestGetDevices(t *testing.T) {
|
||||||
|
assertGetDevices(GetDevices(), t)
|
||||||
t.Log("Testing with release version dev")
|
|
||||||
assertGetDevices(GetDevices("dev"), t)
|
|
||||||
t.Log("Testing with release version prod")
|
|
||||||
assertGetDevices(GetDevices("prod"), t)
|
|
||||||
t.Log("Testing with release version cloud")
|
|
||||||
assertGetDevices(GetDevices("cloud"), t)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func assertGetDevices(devices []Device, t *testing.T) {
|
func assertGetDevices(devices []Device, t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue