[PATCH v3 3/5] t1405: check for_each_reflog_ent_reverse() more thoroughly
- From
Han-Wen Nienhuys via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Dec 2, 2021, 17:36 UTC
- Message-ID
- <46a8e13a5e6d04b2265b3bd4f06e81408e63fe98.1638466593.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.1145.v3.git.git.1638466593.gitgitgadget@gmail.com>
From: Han-Wen Nienhuys <hanwen@google.com>
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 <hanwen@google.com> --- t/t1405-main-ref-store.sh | 1 + 1 file changed, 1 insertion(+)
diff --git a/t/t1405-main-ref-store.sh b/t/t1405-main-ref-store.sh index a600bedf2cd..76b15458409 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 '
-- gitgitgadget