about summary refs log tree commit homepage
path: root/xt
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-10 07:04:42 +0000
committerEric Wong <e@yhbt.net>2020-06-13 07:55:45 +0000
commitd67fff9abf168c7517311bdd8987ce174a60f2c4 (patch)
tree462f73d4c2f6046988c5c60967eb1d8963d4c5ba /xt
parent4d1a787a0a3c27a11c266b2f76293d09b858b38e (diff)
downloadpublic-inbox-d67fff9abf168c7517311bdd8987ce174a60f2c4.tar.gz
Having two large numbers separated by a dash can make visual
comparisons difficult when numbers are in the 3,000,000 range
for LKML.  So avoid the $UID_END value, since it can be
calculated from $UID_MIN.  And we can avoid large values of
$UID_MIN, too, by instead storing the block index and just
multiplying it by 50000 (and adding 1) on the server side.

Of course, LKML still goes up to 72, at the moment.
Diffstat (limited to 'xt')
-rw-r--r--xt/imapd-mbsync-oimap.t2
-rw-r--r--xt/imapd-validate.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/xt/imapd-mbsync-oimap.t b/xt/imapd-mbsync-oimap.t
index b2cb8737..fdaa22aa 100644
--- a/xt/imapd-mbsync-oimap.t
+++ b/xt/imapd-mbsync-oimap.t
@@ -14,7 +14,7 @@ plan skip_all => "bad characters in $inboxdir" if $inboxdir =~ m![^\w\.\-/]!;
 my ($tmpdir, $for_destroy) = tmpdir();
 my $cfg = "$tmpdir/cfg";
 my $newsgroup = 'inbox.test';
-my $mailbox = "$newsgroup.1-50000";
+my $mailbox = "$newsgroup.0";
 {
         open my $fh, '>', $cfg or BAIL_OUT "open: $!";
         print $fh <<EOF or BAIL_OUT "print: $!";
diff --git a/xt/imapd-validate.t b/xt/imapd-validate.t
index b7b66d05..aeeb43b9 100644
--- a/xt/imapd-validate.t
+++ b/xt/imapd-validate.t
@@ -39,7 +39,7 @@ if (($ENV{IMAP_TEST_URL} // '') =~ m!\Aimap://([^/]+)/(.+)\z!) {
 } else {
         require_mods(qw(DBD::SQLite));
         $make_local_server->();
-        $mailbox = "$newsgroup.1-50000";
+        $mailbox = "$newsgroup.0";
 }
 
 my %opts = (imap => \%OPT, 'imap+compress' => { %OPT, Compress => 1 });