From f9d5f602ff71571bd7770fba98f66b32c621d9ba Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 29 Apr 2023 07:18:53 +0000 Subject: [PATCH] t/lei-import-nntp: dump $lei_err on failure 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/lei-import-nntp.t b/t/lei-import-nntp.t index eb1ae3121..2c48d9735 100644 --- a/t/lei-import-nntp.t +++ b/t/lei-import-nntp.t @@ -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"; -- 2.47.3