mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-10-06 03:07:07 +02:00
Fix tests
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user