about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-05-30 06:33:56 +0000
committerEric Wong <e@80x24.org>2021-05-30 08:09:08 +0000
commit9b4d6cb8d09777ac3157afe0b08969a959e4968a (patch)
tree2c7cffd8b90d85150e447e6ff2e66ad019295439 /t
parent6ac85b2245b306590527196fb2cee124a29979b5 (diff)
downloadpublic-inbox-9b4d6cb8d09777ac3157afe0b08969a959e4968a.tar.gz
Requiring UIDVALIDITY on the command-line is of course
unreasonable.
Diffstat (limited to 't')
-rw-r--r--t/lei-import-imap.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/lei-import-imap.t b/t/lei-import-imap.t
index 895b19ff..34fd6cf9 100644
--- a/t/lei-import-imap.t
+++ b/t/lei-import-imap.t
@@ -13,6 +13,7 @@ my $host_port = tcp_host_port($sock);
 undef $sock;
 test_lei({ tmpdir => $tmpdir }, sub {
         my $url = "imap://$host_port/t.v2.0";
+        my $url_orig = $url;
 
         lei_ok(qw(q z:1..));
         my $out = json_utf8->decode($lei_out);
@@ -100,6 +101,8 @@ test_lei({ tmpdir => $tmpdir }, sub {
         lei_ok qw(lcat -f json), $uid_url;
         $out = json_utf8->decode($lei_out);
         is(scalar(@$out), 2, 'got JSON') or diag explain($out);
+        lei_ok qw(lcat), $url_orig;
+        is($lei_out, $orig, 'lcat w/o UID works');
 });
 
 done_testing;