pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

(www/p5-WWW-Mechanize-Cached) make test fails



Hi, pkgsrc-users,:-)

make test on (www/p5-WWW-Mechanize-Cached) fails as:

   t/006-cached-chi.t ........ 7/14 
   #   Failed test 'should be cached'
   #   at t/006-cached-chi.t line 64.
   t/006-cached-chi.t ........ 9/14 # Looks like you failed 1 test of 14.
   t/006-cached-chi.t ........ Dubious, test returned 1 (wstat 256, 0x100)
   Failed 1/14 subtests 

But adding one line gives PASS

--- t/006-cached-chi.t.orig	2015-04-17 05:32:25.000000000 +0900
+++ t/006-cached-chi.t	2015-11-26 21:39:54.000000000 +0900
@@ -59,6 +59,7 @@ SKIP: {
         ok( !$mech->is_cached,        "should be NOT cached" );
         $stashpage = $first;
 
+	my $dummy =  $mech->get(URL)->content;
         my $second = $mech->get(URL)->content;
         ok( defined $mech->is_cached, "Second request" );
         ok( $mech->is_cached,         "should be cached" );

I'm totally not aware of original intent, nor the effect of
changes I made. But

1. Am I doing something stupid ?
2. Or should (NetBSD folks) fix this problem ?
3. Or should I report to upstream ?

Thank you,
---
mef%NetBSD.org@localhost
Makoto Fujiwara, 
Chiba, Japan, Narita Airport and Disneyland prefecture.


Home | Main Index | Thread Index | Old Index