Skip to content

Commit 42aa29e

Browse files
peffgitster
authored andcommitted
t5541: mark passing c-a-s test as success
Commit 05c1eb1 (push: teach --force-with-lease to smart-http transport) fixed the compare-and-swap test in t5541. It tried to mark the test as passing by teaching the test helper function to expect an extra "success or failure" parameter, but forgot to actually use the parameter in the helper. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 05c1eb1 commit 42aa29e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/lib-httpd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test_http_push_nonff () {
169169
test_i18ngrep "Updates were rejected because" output
170170
'
171171

172-
test_expect_failure 'force with lease aka cas' '
172+
test_expect_${EXPECT_CAS_RESULT} 'force with lease aka cas' '
173173
HEAD=$( cd "$REMOTE_REPO" && git rev-parse --verify HEAD ) &&
174174
test_when_finished '\''
175175
(cd "$REMOTE_REPO" && git update-ref HEAD "$HEAD")

0 commit comments

Comments
 (0)