Skip to content

Commit

Permalink
Add more tests around a test that fails intermittently in AssetLineage.t
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed May 17, 2011
1 parent aaa2d8e commit e33c41b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/Asset/AssetLineage.t
Expand Up @@ -17,7 +17,7 @@ use WebGUI::Session;
use WebGUI::User;

use WebGUI::Asset;
use Test::More tests => 98; # increment this value for each test you create
use Test::More tests => 99; # increment this value for each test you create
use Test::Deep;

# Test the methods in WebGUI::AssetLineage
Expand Down Expand Up @@ -352,7 +352,7 @@ is($snippets[6]->getRank(), '5', 'setRank was able to set an arbitrary rank(lowe
$lineageIds = $folder->getLineage(['descendants']);
cmp_bag(\@snipIds, $lineageIds, 'setRank reordered the other siblings appropiately');

$snippets[6]->setRank('000007');
ok $snippets[6]->setRank('000007'), 'move snippet 6 to rank 7';
is($snippets[6]->getRank(), '7', 'setRank: move the Asset back (higher rank)');

@snipIds = map { $_->getId } @snippets;
Expand Down

0 comments on commit e33c41b

Please sign in to comment.