Commit 01f3593f authored by Matthew Holt's avatar Matthew Holt

Update test case

parent 4cce8c7b
...@@ -14,7 +14,7 @@ import ( ...@@ -14,7 +14,7 @@ import (
func TestRoot(t *testing.T) { func TestRoot(t *testing.T) {
// Predefined error substrings // Predefined error substrings
parseErrContent := "Parse error:" parseErrContent := "pars"
unableToAccessErrContent := "Unable to access root path" unableToAccessErrContent := "Unable to access root path"
existingDirPath, err := getTempDirPath() existingDirPath, err := getTempDirPath()
...@@ -80,7 +80,7 @@ func TestRoot(t *testing.T) { ...@@ -80,7 +80,7 @@ func TestRoot(t *testing.T) {
} }
if !strings.Contains(err.Error(), test.expectedErrContent) { if !strings.Contains(err.Error(), test.expectedErrContent) {
t.Errorf("Test %d: Expected error to contain: %v, found error: %v, input: %s", i, test.expectedErrContent, err, test.input) t.Errorf("Test %d: Expected error to contain '%v', found error: %v, input: %s", i, test.expectedErrContent, err, test.input)
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment