@@ -192,7 +192,7 @@ my $ldapProps = WebGUI::Test->getSmokeLDAPProps();
192
192
$session -> db-> setRow(' ldapLink' , ' ldapLinkId' , $ldapProps , $ldapProps -> {ldapLinkId });
193
193
my $ldap = WebGUI::LDAPLink-> new($session , $ldapProps -> {ldapLinkId });
194
194
is($ldap -> getValue(" ldapLinkId" ),$ldapProps -> {ldapLinkId },' ldap link created properly' );
195
- addToCleanup($ldap );
195
+ WebGUI::Test -> addToCleanup($ldap );
196
196
197
197
my @shawshank ;
198
198
@@ -687,7 +687,8 @@ cmp_bag(
687
687
ok $localSession -> user-> isInGroup($localScratchGroup -> getId), ' Local Visitor is in the scratch group' ;
688
688
689
689
$remoteSession -> stow-> delete (' isInGroup' );
690
- ok !$remoteSession -> user-> isInGroup($localScratchGroup -> getId), ' Remove Visitor is not in the scratch group, even though a different Visitor passed' ;
690
+ $localScratchGroup -> clearCaches;
691
+ ok !$remoteSession -> user-> isInGroup($localScratchGroup -> getId), ' Remote Visitor is not in the scratch group, even though a different Visitor passed' ;
691
692
692
693
}
693
694
@@ -765,7 +766,8 @@ foreach my $ipTest (@ipTests) {
765
766
ok $localSession -> user-> isInGroup($localIpGroup -> getId), ' Local Visitor is in the group' ;
766
767
767
768
$remoteSession -> stow-> delete (' isInGroup' );
768
- ok !$remoteSession -> user-> isInGroup($localIpGroup -> getId), ' Remove Visitor is not in the group, even though a different Visitor passed' ;
769
+ $localIpGroup -> clearCaches;
770
+ ok !$remoteSession -> user-> isInGroup($localIpGroup -> getId), ' Remote Visitor is not in the group, even though a different Visitor passed' ;
769
771
770
772
}
771
773
@@ -840,7 +842,7 @@ ok(! WebGUI::Group->vitalGroup('27'), '... 27 is not vital');
840
842
# Normal group
841
843
my $happyDude = WebGUI::User-> create( $session );
842
844
$happyDude -> username(" Happy Dude " );
843
- addToCleanup( $happyDude );
845
+ WebGUI::Test -> addToCleanup( $happyDude );
844
846
845
847
$gA -> addUsers([ $happyDude -> getId ]);
846
848
$gB -> addUsers([ $happyDude -> getId ]);
0 commit comments