]> Sergey Matveev's repositories - public-inbox.git/blobdiff - xt/imapd-mbsync-oimap.t
xt/*: show some tunable parameters
[public-inbox.git] / xt / imapd-mbsync-oimap.t
index b2cb8737f82264bcd2d8e30a68f465c605236850..c097a0262f06f908189ed89477c0ea545dd55336 100644 (file)
@@ -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: $!";
@@ -116,7 +116,9 @@ while (scalar keys %pids) {
        is($?, 0, join(' ', @$cmd, 'done'));
 }
 
-if (my $sec = $ENV{TEST_PERSIST}) {
+my $sec = $ENV{TEST_PERSIST} // 0;
+diag "TEST_PERSIST=$sec";
+if ($sec) {
        diag "sleeping ${sec}s, imap://$host:$port/$mailbox available";
        diag "tmpdir=$tmpdir (Maildirs available)";
        diag "stdout=$out";