X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Flei-mirror.t;h=de5246b60bce27c707c2a6e833bfe2655f79771f;hb=81a0962fa9798c4fb0ab234ed54f3e886996a8a0;hp=7dd03b263b5b97872da156141dac4fbd57e883d1;hpb=5a5d2496f139e45823dbee3361ab790b2db4d31f;p=public-inbox.git diff --git a/t/lei-mirror.t b/t/lei-mirror.t index 7dd03b26..de5246b6 100644 --- a/t/lei-mirror.t +++ b/t/lei-mirror.t @@ -65,6 +65,14 @@ test_lei({ tmpdir => $tmpdir }, sub { lei_ok('ls-external'); unlike($lei_out, qr!\Q$d\E!s, 'not added to ls-external'); + $d = "$home/bad-epoch"; + ok(!lei(qw(add-external -q --epoch=0.. --mirror), "$http/t1/", $d), + 'v1 fails on --epoch'); + ok(!-d $d, 'destination not created on unacceptable --epoch'); + ok(!lei(qw(add-external -q --epoch=1 --mirror), "$http/t2/", $d), + 'v2 fails on bad epoch range'); + ok(!-d $d, 'destination not created on bad epoch'); + my %phail = ( HTTPS => 'https://public-inbox.org/' . 'phail', ONION =>