fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-12-09 12:00 pm

[dw-free] some tests need a replacement for /dev/t_00.bml

[commit: http://hg.dwscoalition.org/dw-free/rev/717d27477813]

http://bugs.dwscoalition.org/show_bug.cgi?id=2540

Change the URL in the test to a page that actually exists.

Patch by [personal profile] kareila.

Files modified:
  • t/atom-post.t
  • t/webreq.t
--------------------------------------------------------------------------------
diff -r 8bdc021088c3 -r 717d27477813 t/atom-post.t
--- a/t/atom-post.t	Thu Dec 09 19:12:51 2010 +0800
+++ b/t/atom-post.t	Thu Dec 09 19:15:30 2010 +0800
@@ -11,7 +11,7 @@ use XML::Atom::Entry;
 use XML::Atom::Entry;
 
 use LWP::Simple;
-if (get("$LJ::SITEROOT/dev/t_00.bml") =~ /BML file/) {
+if ( get( "$LJ::SITEROOT/admin/healthy" ) =~ /^status=/ ) {
     plan tests => 5;
 } else {
     plan skip_all => "Webserver not running.";
diff -r 8bdc021088c3 -r 717d27477813 t/webreq.t
--- a/t/webreq.t	Thu Dec 09 19:12:51 2010 +0800
+++ b/t/webreq.t	Thu Dec 09 19:15:30 2010 +0800
@@ -18,7 +18,7 @@ diag($LJ::DOMAIN_WEB);
 diag($LJ::DOMAIN_WEB);
 
 my $req = $fa->new_request(
-                           uri => "/dev/t_00.bml",
+                           uri => "/admin/healthy",
                            headers => {
                                host => $LJ::DOMAIN_WEB,
                            },
--------------------------------------------------------------------------------