From: Han-Wen Nienhuys Date: Thu, 2 Dec 2021 17:36:31 +0000 (+0000) Subject: t1405: check for_each_reflog_ent_reverse() more thoroughly X-Git-Tag: v2.35.0-rc0~81^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6887f69faa11141c20be29d2fd51bb33e15e227a;p=thirdparty%2Fgit.git t1405: check for_each_reflog_ent_reverse() more thoroughly If we are checking for a certain ordering, we should check that there are two entries. Do this by mirroring the preceding test. Signed-off-by: Han-Wen Nienhuys Signed-off-by: Junio C Hamano --- diff --git a/t/t1405-main-ref-store.sh b/t/t1405-main-ref-store.sh index a600bedf2c..76b1545840 100755 --- a/t/t1405-main-ref-store.sh +++ b/t/t1405-main-ref-store.sh @@ -94,6 +94,7 @@ test_expect_success 'for_each_reflog_ent()' ' test_expect_success 'for_each_reflog_ent_reverse()' ' $RUN for-each-reflog-ent-reverse HEAD >actual && + head -n1 actual | grep recreate-main && tail -n1 actual | grep one '