Skip to content

Commit

Permalink
Item11983: reorder test to improve time check
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@15445 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Sep 27, 2012
1 parent 9453806 commit 1a5d015
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UnitTestContrib/test/unit/RCSHandlerTests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -508,14 +508,14 @@ sub verify_Keywords {
my ($this) = @_;
my $topic = "TestRcsTopic";

my $rcs = $class->new( new StoreStub, $testWeb, $topic, undef );

my $time = time();
my $check = <<HERE;
%META:TOPICINFO{author="UserForRev0" comment="comment" date="$time" format="1.1" version="1"}%
HERE
$check .=
'$Author$ $Date$ $Header$ $Id$ $Locker$ $Log$ $Name$ $RCSfile$ $Revision$ $Source$ $State$';

my $rcs = $class->new( new StoreStub, $testWeb, $topic, undef );
$rcs->addRevisionFromText( $check, "comment", "UserForRev0" );
open( F, "<$rcs->{file}" ) || die "Failed to open $rcs->{file}";
local $/ = undef;
Expand Down

0 comments on commit 1a5d015

Please sign in to comment.