summaryrefslogtreecommitdiff
path: root/tests/libgit2/refs
diff options
context:
space:
mode:
authorCarl Dong <accounts@carldong.me>2022-05-09 12:09:08 -0400
committerGitHub <noreply@github.com>2022-05-09 12:09:08 -0400
commit7f53d7b600a838c19276e835fd0188c361a63801 (patch)
treead44ecbaf9dc3cf8e2d3a704ff7fcde5c5336ea4 /tests/libgit2/refs
parentbdab22384cc61d315005a65456a9f9563bb27c8f (diff)
downloadlibgit2-7f53d7b600a838c19276e835fd0188c361a63801.tar.gz
revparse: Remove error-prone, redundant test
Originally introduced in: 776a6a8e5f8e258d31aded73c0ce38df6ac7bdc4 This test case has recently been fixed in bdab22384cc61d315005a65456a9f9563bb27c8f, but that fix will only last for a year. Next year the same problem will crop up and the test will need to be re-edited. This is not ideal as - This test case becomes an unnecessary burden for developers - Downstream distros or even just users who want to build older versions of libgit2 are guaranteed to have this test fail Furthermore, this test case is entirely unnecessary, as the functionality that was originally (see 776a6a8e5f8e258d31aded73c0ce38df6ac7bdc4) intended to be tested is well-covered by subsequent tests which specify a date instead of a "x ago" specification.
Diffstat (limited to 'tests/libgit2/refs')
-rw-r--r--tests/libgit2/refs/revparse.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/libgit2/refs/revparse.c b/tests/libgit2/refs/revparse.c
index 93d7ce6db..56af3c939 100644
--- a/tests/libgit2/refs/revparse.c
+++ b/tests/libgit2/refs/revparse.c
@@ -399,8 +399,6 @@ void test_refs_revparse__date(void)
* a65fedf HEAD@{1335806603 -0900}: commit:
* be3563a HEAD@{1335806563 -0700}: clone: from /Users/ben/src/libgit2/tests/resour
*/
- test_object("HEAD@{11 years ago}", "be3563ae3f795b2b4353bcce3a527ad0a4f7f644");
-
test_object("HEAD@{1 second}", "a65fedf39aefe402d3bb6e24df4d4f5fe4547750");
test_object("HEAD@{1 second ago}", "a65fedf39aefe402d3bb6e24df4d4f5fe4547750");
test_object("HEAD@{2 days ago}", "a65fedf39aefe402d3bb6e24df4d4f5fe4547750");