mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-10-03 17:57:08 +02:00
Added missing t.Fail() statements in utils_test.go
This commit is contained in:
@@ -75,6 +75,7 @@ func TestDeleteEmptySlices(t *testing.T) {
|
|||||||
|
|
||||||
if (len(resultSlice)) != 2 {
|
if (len(resultSlice)) != 2 {
|
||||||
t.Log("Expected 2 slices but got ", len(resultSlice))
|
t.Log("Expected 2 slices but got ", len(resultSlice))
|
||||||
|
t.Fail()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -85,6 +86,7 @@ func TestGetPath(t *testing.T) {
|
|||||||
result := GetPath(invalidPathKey)
|
result := GetPath(invalidPathKey)
|
||||||
if result != "" {
|
if result != "" {
|
||||||
t.Log("Expected empty result but got ", result)
|
t.Log("Expected empty result but got ", result)
|
||||||
|
t.Fail()
|
||||||
}
|
}
|
||||||
|
|
||||||
validPathKey := "wsPath"
|
validPathKey := "wsPath"
|
||||||
|
|||||||
Reference in New Issue
Block a user