]> git.ipfire.org Git - thirdparty/git.git/commit
t5500: count objects through stderr, not trace
authorJonathan Tan <jonathantanmy@google.com>
Wed, 6 May 2020 22:07:40 +0000 (15:07 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 May 2020 22:38:06 +0000 (15:38 -0700)
commit2b695ecd74d174e23ed09c1c044f1313de538d15
treef3f9df23b806c64fd772d0df715c2679f18967ec
parent2f0a093dd640e0dad0b261dae2427f2541b5426c
t5500: count objects through stderr, not trace

In two tests introduced by 4fa3f00abb ("fetch-pack: in protocol v2,
in_vain only after ACK", 2020-04-28) and 2f0a093dd6 ("fetch-pack: in
protocol v2, reset in_vain upon ACK", 2020-04-28), the count of objects
downloaded is checked by grepping for a specific message in the packet
trace. However, this is flaky as that specific message may be delivered
over 2 or more packet lines.

Instead, grep over stderr, just like the "fetch creating new shallow
root" test in the same file.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5500-fetch-pack.sh