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-22 12:42 pm

[dw-free] fix proto-post-edit-roundtrip.t

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

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

Don't try to set the rev* properties. Not going to work.

Patch by [personal profile] kareila.

Files modified:
  • t/proto-post-edit-roundtrip.t
--------------------------------------------------------------------------------
diff -r 68f7595c9791 -r 4dc430073012 t/proto-post-edit-roundtrip.t
--- a/t/proto-post-edit-roundtrip.t	Thu Apr 22 05:26:57 2010 -0700
+++ b/t/proto-post-edit-roundtrip.t	Thu Apr 22 05:47:39 2010 -0700
@@ -7,8 +7,7 @@ require 'ljlib.pl';
 require 'ljlib.pl';
 require 'ljprotocol.pl';
 
-#plan tests => 10;
-plan skip_all => 'Fix this test!';
+plan tests => 10;
 
 my $u = temp_user();
 my $newpass = "pass" . rand();
@@ -63,6 +62,9 @@ is($it->{props}{revnum}, 1, "is 1st revi
 {
     my %props;
     foreach my $p (keys %{ $it->{props} }) {
+        # revnum and revtime can't be manually specified; skip these
+        next if $p eq "revnum";
+        next if $p eq "revtime";
         $props{"prop_$p"} = $it->{props}{$p};
     }
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org