diff-highlight: use test_tick in graph test
commit53ab9f0e3d0ff2bb5803059da3526ef6eda8ce65
authorJeff King <peff@peff.net>
Wed, 21 Mar 2018 05:48:40 +0000 (21 01:48 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Mar 2018 17:24:19 +0000 (21 10:24 -0700)
tree9275a87f1a58c74b5508f6c018c246230a01fd82
parent5013acc27839bf04691c13dd82f5add2ca40eb4e
diff-highlight: use test_tick in graph test

The exact ordering output by Git may depend on the commit
timestamps, so let's make sure they're actually
monotonically increasing, and not all the same (or worse,
subject to how long the test script takes to run).

Let's use test_tick to make sure this is stable. Note that
we actually have to rearrange the order of the branches to
match the expected graph structure (which means that
previously we might racily have been testing a slightly
different output, though the test is written in such a way
that we'd still pass).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/diff-highlight/t/t9400-diff-highlight.sh