about summary refs log tree commit homepage
path: root/t/view.t
diff options
context:
space:
mode:
Diffstat (limited to 't/view.t')
-rw-r--r--t/view.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/t/view.t b/t/view.t
index 3332fb48..6c085991 100644
--- a/t/view.t
+++ b/t/view.t
@@ -9,7 +9,13 @@ use PublicInbox::View;
 sub msg_html ($) {
         my ($mime) = @_;
 
-        PublicInbox::View::msg_html(undef, $mime);
+        my $s = '';
+        my $body = PublicInbox::View::msg_html(undef, $mime);
+        while (defined(my $buf = $body->getline)) {
+                $s .= $buf;
+        }
+        $body->close;
+        $s;
 }
 
 # plain text