]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/lei-import-nntp: dump $lei_err on failure
authorEric Wong <e@80x24.org>
Sat, 29 Apr 2023 07:18:53 +0000 (07:18 +0000)
committerEric Wong <e@80x24.org>
Mon, 1 May 2023 02:50:27 +0000 (02:50 +0000)
I hit an error on the backwards range import test and can't
reproduce it, perhaps dumping $lei_err can help diagnose it
in the future.

t/lei-import-nntp.t

index eb1ae312143f2cfffafbbbf2e0fc5890b68cb00e..2c48d9735c715d8c1c4e78812127afa71c50323b 100644 (file)
@@ -43,7 +43,8 @@ test_lei({ tmpdir => $tmpdir }, sub {
        lei_ok 'ls-mail-sync';
        like($lei_out, qr!\A\Q$url\E\n\z!, 'ls-mail-sync output as-expected');
 
-       ok(!lei(qw(import), "$url/12-1"), 'backwards range rejected');
+       ok(!lei(qw(import), "$url/12-1"), 'backwards range rejected') or
+               diag $lei_err;
 
        # new home
        local $ENV{HOME} = "$tmpdir/h2";