Added missing t.Fail() statements in utils_test.go

pull/13/head
Paulo Truta 2021-06-12 14:33:34 +00:00
parent cf56526f97
commit 8a30427287
1 changed files with 2 additions and 0 deletions

View File

@ -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"