Skip to content

Commit 27ae797

Browse files
committed
Fix unit test to match changed output in previous commit
1 parent b18abd7 commit 27ae797

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ test_create_path() {
3030
( create_path "/test/a" true >${stdoutF} 2>${stderrF} )
3131
result=$?
3232
assertFalse "expecting return code of 1 (false)" ${result}
33-
grep "ERROR: Unable to create dirs. Check the specified path" "${stderrF}" >/dev/null
33+
grep "ERROR: calling function is_dir() before authentication has been set up." "${stderrF}" >/dev/null
3434
assertTrue "STDERR message incorrect" $?
3535

3636
# Check error handling when parent does not exist
3737
( create_path "/test/a" false >${stdoutF} 2>${stderrF} )
3838
result=$?
3939
assertFalse "expecting return code of 1 (false)" ${result}
40-
grep "ERROR: parent dir '/test' does not exist. To recursively create dirs, add --recursive" "${stderrF}" >/dev/null
40+
grep "ERROR: calling function is_dir() before authentication has been set up." "${stderrF}" >/dev/null
4141
assertTrue 'STDERR message incorrect' $?
4242

4343
# Check error handling when max number of directories is exceeded

0 commit comments

Comments
 (0)