Shave two seconds off the Clipboard test by setting the revisionDate on the original asset for testing.
This commit is contained in:
parent
e4da19bcc3
commit
891098fa3f
1 changed files with 1 additions and 3 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue