]> git.ipfire.org Git - thirdparty/git.git/commit
t5551: make EXPENSIVE test cheaper
authorJeff King <peff@peff.net>
Fri, 13 Mar 2015 04:57:05 +0000 (00:57 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Mar 2015 06:29:19 +0000 (23:29 -0700)
commit376e4b39d4453ce50cbacc9c46a3bbdaad2134b2
tree52ccc76bb4a1bb7ef8bc3b0e5aade6389a98ab02
parent9a308de37c485068d6470d4c51e231a36e651e98
t5551: make EXPENSIVE test cheaper

We create 50,000 tags to check that we don't overflow the
command-line of fetch-pack. But by using run_with_cmdline_limit,
we can get the same effect with a much smaller number of
tags. This makes the test fast enough that we can drop the
EXPENSIVE prereq, which means people will actually run it.

It was not documented to do so, but this test was also the
only test of a clone-over-http that requires multiple POSTs
during the conversation. We can continue to test that by
dropping http.postbuffer to its minimum size, and checking
that we get two POSTs.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5551-http-fetch-smart.sh