X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Flei-auto-watch.t;h=f871188d9d8885d4ac51b2dc2a0305bf53fe9ae7;hp=e5e132eb3bfdfcf1879669cb854063e687d696aa;hb=refs%2Fheads%2Fmaster;hpb=a2455c390a80a95b0e36d42a6018a756e301519f diff --git a/t/lei-auto-watch.t b/t/lei-auto-watch.t index e5e132eb..f871188d 100644 --- a/t/lei-auto-watch.t +++ b/t/lei-auto-watch.t @@ -3,6 +3,7 @@ # License: AGPL-3.0+ use strict; use v5.10.1; use PublicInbox::TestCommon; use File::Basename qw(basename); +plan skip_all => "TEST_FLAKY not enabled for $0" if !$ENV{TEST_FLAKY}; my $have_fast_inotify = eval { require Linux::Inotify2 } || eval { require IO::KQueue }; $have_fast_inotify or @@ -41,7 +42,8 @@ test_lei(sub { $ins = json_utf8->decode($lei_out); $exp = { "maildir:$x" => [ map { basename($_) } glob("$x/*/*") ], "maildir:$y" => [ map { basename($_) } glob("$y/*/*") ] }; - is_deeply($ins->{'mail-sync'}, $exp, 'mail_sync matches FS'); + is_deeply($ins->{'mail-sync'}, $exp, 'mail_sync matches FS') or + diag explain($ins); }); done_testing;