From e33c41bd437148a1e76dabaf22885f3c355d491b Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 16 May 2011 21:57:07 -0700 Subject: [PATCH] Add more tests around a test that fails intermittently in AssetLineage.t --- t/Asset/AssetLineage.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/Asset/AssetLineage.t b/t/Asset/AssetLineage.t index d32a0d1b7..1455ddbd2 100644 --- a/t/Asset/AssetLineage.t +++ b/t/Asset/AssetLineage.t @@ -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 @@ -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;