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 <drizzd@aon.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
5238cbf656
commit
d202a513a4
@ -105,7 +105,7 @@ cat >exp <<EOF
|
|||||||
remote: error: hook declined to update refs/heads/dev2
|
remote: error: hook declined to update refs/heads/dev2
|
||||||
To http://127.0.0.1:$LIB_HTTPD_PORT/smart/test_repo.git
|
To http://127.0.0.1:$LIB_HTTPD_PORT/smart/test_repo.git
|
||||||
! [remote rejected] dev2 -> dev2 (hook declined)
|
! [remote rejected] dev2 -> dev2 (hook declined)
|
||||||
error: failed to push some refs to 'http://127.0.0.1:5541/smart/test_repo.git'
|
error: failed to push some refs to 'http://127.0.0.1:$LIB_HTTPD_PORT/smart/test_repo.git'
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
test_expect_success 'rejected update prints status' '
|
test_expect_success 'rejected update prints status' '
|
||||||
|
Reference in New Issue
Block a user