Skip to content

Commit 8a92be9

Browse files
committedNov 4, 2011
Fix another leaky test.
1 parent dc489b2 commit 8a92be9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎t/Macro/LastUpdatedBy.t

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use WebGUI::Test;
1616
use WebGUI::Session;
1717
use WebGUI::User;
1818
use WebGUI::Macro::LastUpdatedBy;
19+
use WebGUI::VersionTag;
1920

2021
use Test::More; # increment this value for each test you create
2122

@@ -51,9 +52,12 @@ my %properties_A = (
5152
# '1234567890123456789012',
5253
);
5354

55+
my $tag = WebGUI::VersionTag->getWorking($session);
5456
my $assetA = $root->addChild(\%properties_A, $properties_A{id});
5557

5658
$session->asset($assetA);
59+
$tag->commit;
60+
WebGUI::Test->addToCleanup($tag);
5761

5862
$output = WebGUI::Macro::LastUpdatedBy::process($session);
5963
is($output, 'Andy', 'Default asset last revised by andy');

0 commit comments

Comments
 (0)
Please sign in to comment.