lei/store: stop shard workers + cat-file on idle
[public-inbox.git] / t / lei-mail-diff.t
blob1a896e515d8f11c8c0ee5e5d0b95af521f887a5c
1 #!perl -w
2 # Copyright (C) all contributors <meta@public-inbox.org>
3 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
4 use v5.12; use PublicInbox::TestCommon;
6 test_lei(sub {
7         ok(!lei('mail-diff', 't/data/0001.patch', 't/data/binary.patch'),
8                 'different messages are different');
9         like($lei_out, qr/^\+/m, 'diff shown');
10         unlike $lei_out, qr/No newline at end of file/;
11         lei_ok('mail-diff', 't/data/0001.patch', 't/data/0001.patch');
12         is($lei_out, '', 'no output if identical');
13 });
15 done_testing;