Skip to content

Commit 3b32a7c

Browse files
pcloudsgitster
authored andcommitted
t5537: fix incorrect expectation in test case 10
Commit 48d25ca adds a new commit "7" to the repo that the next test case in commit 1609488 clones from. But the next test case does not expect this commit. For these tests, it's the bottom that's important, not the top. Fix the expected commit list. While at it, fix the default http port number to 5537. Otherwise when t5536 learns to test httpd, running test in parallel may fail. References: 48d25ca fetch: add --update-shallow to accept... - 2013-12-05 1609488 smart-http: support shallow fetch/clone - 2013-12-05 Noticed-by: Jeff King <[email protected]> Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent feefdf6 commit 3b32a7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t5537-fetch-shallow.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ if test -n "$NO_CURL" -o -z "$GIT_TEST_HTTPD"; then
178178
test_done
179179
fi
180180

181-
LIB_HTTPD_PORT=${LIB_HTTPD_PORT-'5536'}
181+
LIB_HTTPD_PORT=${LIB_HTTPD_PORT-'5537'}
182182
. "$TEST_DIRECTORY"/lib-httpd.sh
183183
start_httpd
184184

@@ -190,6 +190,7 @@ test_expect_success 'clone http repository' '
190190
git fsck &&
191191
git log --format=%s origin/master >actual &&
192192
cat <<EOF >expect &&
193+
7
193194
6
194195
5
195196
4

0 commit comments

Comments
 (0)