Skip to content

Commit d202a51

Browse files
Clemens Buchachergitster
authored andcommitted
t5541: check error message against the real port number used
Otherwise the test cannot be run with custom port set to LIB_HTTPD_PORT. Signed-off-by: Clemens Buchacher <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5238cbf commit d202a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5541-http-push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ cat >exp <<EOF
105105
remote: error: hook declined to update refs/heads/dev2
106106
To http://127.0.0.1:$LIB_HTTPD_PORT/smart/test_repo.git
107107
! [remote rejected] dev2 -> dev2 (hook declined)
108-
error: failed to push some refs to 'http://127.0.0.1:5541/smart/test_repo.git'
108+
error: failed to push some refs to 'http://127.0.0.1:$LIB_HTTPD_PORT/smart/test_repo.git'
109109
EOF
110110

111111
test_expect_success 'rejected update prints status' '

0 commit comments

Comments
 (0)