]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/html_index.t
watch: ensure HUP causes the scanner to be reloaded
[public-inbox.git] / t / html_index.t
index 32d7b8de4383c01226f43c18c6695f5f522ebd2a..f29b442d9f811b7b393322d5638f60a9c5c362b2 100644 (file)
@@ -13,7 +13,6 @@ my $tmpdir = tempdir('pi-http-XXXXXX', TMPDIR => 1, CLEANUP => 1);
 my $git_dir = "$tmpdir/gittest";
 my $ibx = PublicInbox::Inbox->new({
        address => 'test@example',
-       -primary_address => 'test@example',
        name => 'tester',
        mainrepo => $git_dir,
        url => 'http://example.com/test',
@@ -27,11 +26,6 @@ my $im = PublicInbox::Import->new($git, 'tester', 'test@example');
        my $prev = "";
 
        foreach my $i (1..6) {
-               # my $pid = open(my $pipe, "|-");
-               # defined $pid or die "fork/pipe failed: $!\n";
-               # if ($pid == 0) {
-                       # exec("ssoma-mda", $git_dir);
-               # }
                my $mid = "<$i\@example.com>";
                my $mid_line = "Message-ID: $mid";
                if ($prev) {
@@ -59,15 +53,4 @@ EOF
        $im->done;
 }
 
-# check HTML index
-{
-       use IO::File;
-       my $cb = PublicInbox::Feed::generate_html_index({
-               -inbox => $ibx,
-               max => 3
-       });
-       require 't/common.perl';
-       like(stream_to_string($cb), qr/html/, "feed is valid HTML :)");
-}
-
 done_testing();