[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
kareila.
Files modified:
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]](https://www.dreamwidth.org/img/silk/identity/user.png)
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}; } --------------------------------------------------------------------------------