Skip to content

Commit

Permalink
Item11135: Sync changes in UnitTestContrib to rel
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/branches/Release01x01@13559 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Jan 8, 2012
1 parent f78005d commit 5b97ad8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UnitTestContrib/test/unit/FoswikiTestCase.pm
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,10 @@ __DO NOT CALL session->finish() yourself__
sub createNewFoswikiSession {
my $this = shift;

$this->{session}->finish();
$this->{session}->finish() if $this->{session};
$this->{session} = new Foswiki(@_ );
$Foswiki::Plugins::SESSION = $this->{session};
($this->{test_topicObject}) = Foswiki::Func::readTopic($this->{test_web}, $this->{test_topic});

return $this->{session};
}
Expand Down

0 comments on commit 5b97ad8

Please sign in to comment.