about summary refs log tree commit homepage
path: root/t/v2writable.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-09-15 19:51:37 +0000
committerEric Wong <e@80x24.org>2020-09-16 04:06:10 +0000
commit82d793d96cc37d5b3cf562c7081bfacb05d1e4cd (patch)
treea66af407cfa46641a77f60631cef50a8c487bbb4 /t/v2writable.t
parent9cdeab04ebd95c7f778ba5f258399377b180f2cc (diff)
downloadpublic-inbox-82d793d96cc37d5b3cf562c7081bfacb05d1e4cd.tar.gz
treewide: relax allow >=40 chars for git OID
This will help with eventual git SHA-256 transitions.
Diffstat (limited to 't/v2writable.t')
-rw-r--r--t/v2writable.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/v2writable.t b/t/v2writable.t
index 1de8c032..2f71fafa 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -255,8 +255,8 @@ EOF
 {
         ok($im->add($mime), 'add message to be purged');
         local $SIG{__WARN__} = sub {};
-        ok(my $cmts = $im->purge($mime), 'purged message');
-        like($cmts->[0], qr/\A[a-f0-9]{40}\z/, 'purge returned current commit');
+        ok(my $cmt = $im->purge($mime), 'purged message');
+        like($cmt->[0], qr/\A[a-f0-9]{40,}\z/, 'purge returned current commit');
         $im->done;
 
         # again