diff options
Diffstat (limited to 't')
-rw-r--r-- | t/lei-externals.t | 2 | ||||
-rw-r--r-- | t/lei-import-imap.t | 4 | ||||
-rw-r--r-- | t/lei-import-nntp.t | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/t/lei-externals.t b/t/lei-externals.t index b78b5580..29667640 100644 --- a/t/lei-externals.t +++ b/t/lei-externals.t @@ -40,7 +40,7 @@ SKIP: { pipe(my ($r, $w)) or BAIL_OUT $!; open my $err, '+>', undef or BAIL_OUT $!; my $opt = { run_mode => 0, 1 => $w, 2 => $err }; - my $cmd = [qw(lei q -qt), @$out, 'bytes:1..']; + my $cmd = [qw(lei q -qt), @$out, 'z:1..']; my $tp = start_script($cmd, undef, $opt); close $w; sysread($r, my $buf, 1); diff --git a/t/lei-import-imap.t b/t/lei-import-imap.t index a6ba805f..15a355ab 100644 --- a/t/lei-import-imap.t +++ b/t/lei-import-imap.t @@ -13,11 +13,11 @@ my $td = start_script($cmd, $env, { 3 => $sock }) or BAIL_OUT("-imapd: $?"); my $host_port = tcp_host_port($sock); undef $sock; test_lei({ tmpdir => $tmpdir }, sub { - lei_ok(qw(q bytes:1..)); + lei_ok(qw(q z:1..)); my $out = json_utf8->decode($lei_out); is_deeply($out, [ undef ], 'nothing imported, yet'); lei_ok('import', "imap://$host_port/t.v2.0"); - lei_ok(qw(q bytes:1..)); + lei_ok(qw(q z:1..)); $out = json_utf8->decode($lei_out); ok(scalar(@$out) > 1, 'got imported messages'); is(pop @$out, undef, 'trailing JSON null element was null'); diff --git a/t/lei-import-nntp.t b/t/lei-import-nntp.t index 3fb78fbc..1fc6dbad 100644 --- a/t/lei-import-nntp.t +++ b/t/lei-import-nntp.t @@ -13,12 +13,12 @@ my $td = start_script($cmd, $env, { 3 => $sock }) or BAIL_OUT("-nntpd $?"); my $host_port = tcp_host_port($sock); undef $sock; test_lei({ tmpdir => $tmpdir }, sub { - lei_ok(qw(q bytes:1..)); + lei_ok(qw(q z:1..)); my $out = json_utf8->decode($lei_out); is_deeply($out, [ undef ], 'nothing imported, yet'); lei_ok('import', "nntp://$host_port/t.v2"); diag $lei_err; - lei_ok(qw(q bytes:1..)); + lei_ok(qw(q z:1..)); diag $lei_err; $out = json_utf8->decode($lei_out); ok(scalar(@$out) > 1, 'got imported messages'); |