From 891098fa3f9c60c92e0a23f9dd9e107bef741d29 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 22 Jan 2010 18:38:56 -0800 Subject: [PATCH] Shave two seconds off the Clipboard test by setting the revisionDate on the original asset for testing. --- t/Asset/AssetClipboard.t | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/t/Asset/AssetClipboard.t b/t/Asset/AssetClipboard.t index 4ef457678..7b061377a 100644 --- a/t/Asset/AssetClipboard.t +++ b/t/Asset/AssetClipboard.t @@ -37,7 +37,7 @@ my $snippet = $root->addChild({ menuTitle => 'snippetMenuTitle', className => 'WebGUI::Asset::Snippet', snippet => 'A snippet of text', -}); +}, undef, time()-3); my $snippetAssetId = $snippet->getId; my $snippetRevisionDate = $snippet->get("revisionDate"); @@ -70,8 +70,6 @@ my $folder1a2 = $folder1a->addChild({ $versionTag->commit; -sleep 2; - my $duplicatedSnippet = $snippet->duplicate; is($duplicatedSnippet->get('title'), 'snippet', 'duplicated snippet has correct title');