From b962c0762061b88a81f5cd427f4493a0dfa69b90 Mon Sep 17 00:00:00 2001 From: Pasqualino Ferrentino Date: Sat, 22 Sep 2007 17:36:54 +0200 Subject: [PATCH] Fixed a small bug in the test of the activities, due to the hard coding of the tree --- src/t/TestActivities.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/t/TestActivities.pm b/src/t/TestActivities.pm index 75b640a..9acda01 100644 --- a/src/t/TestActivities.pm +++ b/src/t/TestActivities.pm @@ -102,7 +102,7 @@ sub test_get_summary_tree{ #this is hard coded, if you change the activity this test will surely #fail, but it is not so important - $self->assert_equals(1, $tree->[0]->[1]->[0]->[1]->[0]->[2]); + $self->assert_equals(1, $tree->[1]->[1]->[0]->[1]->[1]->[2]); #now I try also the command #I must login @@ -123,7 +123,7 @@ sub test_get_summary_tree{ $tree = $res->{act_summary_tree}; #also this assert could fail, if you change the activity layout. - $self->assert_equals(1, $tree->[0]->[1]->[0]->[1]->[0]->[2]); + $self->assert_equals(1, $tree->[1]->[1]->[0]->[1]->[1]->[2]); } sub _check_tree_with_nulls{ -- 2.11.4.GIT