]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/feed.t
view: msg_html uses getline body to reduce latency
[public-inbox.git] / t / feed.t
index 906552e5b853458bc839be7667b65a7aa76b4fd3..ab92039f8e1e503d41e4841317ef249ce2c17199 100644 (file)
--- a/t/feed.t
+++ b/t/feed.t
@@ -33,7 +33,8 @@ sub rand_use ($) {
                }
                $SSOMA{$cmd} = $x;
        }
-       (($x > 0 && (int(rand(10)) % 2) == 1) || $x < 0);
+       return if $x < 0;
+       ($x > 0 && (int(rand(10)) % 2) == 1);
 }
 
 my $tmpdir = tempdir('pi-feed-XXXXXX', TMPDIR => 1, CLEANUP => 1);
@@ -183,7 +184,7 @@ EOF
                my $feed = string_feed({
                        git_dir => $git_dir,
                        max => 3,
-                       listname => 'asdf',
+                       inbox => 'asdf',
                        pi_config => bless({
                                'publicinbox.asdf.address' => $addr,
                        }, 'PublicInbox::Config'),