]> Sergey Matveev's repositories - public-inbox.git/blobdiff - xt/net_writer-imap.t
xt/perf-msgview: modernize, support TEST_BLOB
[public-inbox.git] / xt / net_writer-imap.t
index f12280908b94daaef996e26a759f2e995453dd03..cb2ea61ff8e365d307360e4bbef854fa309e2a15 100644 (file)
@@ -122,6 +122,12 @@ test_lei(sub {
        }
        $set_cred_helper->("$ENV{HOME}/.gitconfig", $cred_set) if $cred_set;
 
+       # don't combine these two:
+       $ENV{TEST_IMAP_COMPRESS} and lei_ok qw(config imap.compress true);
+       $ENV{TEST_IMAP_DEBUG} and lei_ok qw(config imap.debug true);
+       my $proxy = $ENV{TEST_IMAP_PROXY};
+       lei_ok(qw(config imap.proxy), $proxy) if $proxy;
+
        lei_ok qw(q f:qp@example.com -o), $folder_url;
        $nwr->imap_each($folder_uri, $imap_slurp_all, my $res = []);
        is(scalar(@$res), 1, 'got one deduped result') or diag explain($res);
@@ -222,7 +228,7 @@ EOM
        $pub_cfg->each_inbox(sub { $_[0]->subscribe_unlock('ident', $obj) });
        my $w = start_script(['-watch'], undef, { 2 => $err_wr });
        diag 'waiting for initial fetch...';
-       PublicInbox::DS->EventLoop;
+       PublicInbox::DS::event_loop();
        my $ibx = $pub_cfg->lookup_name('wtest');
        my $mm = $ibx->mm;
        ok(defined($mm->num_for('Seen@test.example.com')),