From 2ca3ee29b2aea9f82418b109d9fa1fc12c7e3ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chastanet?= Date: Mon, 4 Dec 2023 22:02:06 +0100 Subject: [PATCH] fix UT --- src/_binaries/Git/upgradeGithubRelease.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_binaries/Git/upgradeGithubRelease.bats b/src/_binaries/Git/upgradeGithubRelease.bats index 2d1caf0e..4e6184e2 100755 --- a/src/_binaries/Git/upgradeGithubRelease.bats +++ b/src/_binaries/Git/upgradeGithubRelease.bats @@ -29,11 +29,11 @@ function Git::upgradeGithubRelease::noArg { #@test function Git::upgradeGithubRelease::1Arg { #@test run "${binDir}/upgradeGithubRelease" arg1 2>&1 assert_failure 1 - assert_output --partial "ERROR - Command upgradeGithubRelease - Argument 'githubUrlPattern' should be provided at least 1 time(s)" + assert_output --partial "FATAL - File /bash/arg1 is not writable" } function Git::upgradeGithubRelease::githubArgInvalid { #@test - run "${binDir}/upgradeGithubRelease" arg1 arg2 2>&1 + run "${binDir}/upgradeGithubRelease" /tmp/arg1 arg2 2>&1 assert_failure assert_lines_count 1 assert_line --index 0 --partial "FATAL - Invalid githubUrlPattern arg2 provided, it should begin with https://github.com/"