From 0d9f30ee8fbc83836c89620a706afec818f74304 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 7 Oct 2017 19:50:37 +0100 Subject: [PATCH] Make tests more reliable --- t/WebService-Vichan.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/WebService-Vichan.t b/t/WebService-Vichan.t index 68bb76a..c5ecbcf 100644 --- a/t/WebService-Vichan.t +++ b/t/WebService-Vichan.t @@ -43,7 +43,8 @@ for my $url (@URLS) { my $catalog3 = $catalog_flat[2]; my $catalog3no = $catalog3->no; - ok defined $catalog3->com, 'catalog entry has content'; + my $has_content = defined $catalog3->com || defined $catalog3->filename; + ok $has_content, "third entry in catalog of board $boardcode has content"; my @posts = $chan->thread($board, $catalog3); ok @posts > 0, "thread $catalog3no has posts"; -- 2.30.2