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

[dw-free] fix t/cprod.t

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

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

Tests fix: skip if we don't have cprods set up.

Patch by [personal profile] kareila.

Files modified:
  • t/cprod.t
--------------------------------------------------------------------------------
diff -r b9060a643e0e -r f5ab3d6f909b t/cprod.t
--- a/t/cprod.t	Tue Apr 13 07:34:35 2010 -0700
+++ b/t/cprod.t	Tue Apr 13 07:55:29 2010 -0700
@@ -7,8 +7,11 @@ use LJ::CProd;
 use LJ::CProd;
 use LJ::Test qw(memcache_stress temp_user);
 
-#plan tests => 4;
-plan skip_all => 'Fix this test!';
+if ( @LJ::CPROD_PROMOS ) {
+    plan tests => 4;
+} else {
+    plan skip_all => '@LJ::CPROD_PROMOS undefined.';
+}
 
 sub run_tests {
     my $u = temp_user();
--------------------------------------------------------------------------------