GetPath improvements (#20)

* Use named variables for getting path
Fixed bug with env var

* Fix test

* Use utils to get paths
This commit is contained in:
Malachi Soord
2022-10-08 18:41:37 +02:00
committed by GitHub
parent 83d2fdcae1
commit 0680b7ffb9
7 changed files with 56 additions and 54 deletions
+1 -2
View File
@@ -89,8 +89,7 @@ func TestGetPath(t *testing.T) {
t.Fail()
}
validPathKey := "wsPath"
result = GetPath(validPathKey)
result = GetPath(WsPath)
if result != "/home/system/components/ws/" {
t.Log("Expected /home/system/components/ws/ but got", result)
t.Fail()