Skip to content

Commit

Permalink
Issue #447: use the rel-10_1 version of DeploymentBug13462.t
Browse files Browse the repository at this point in the history
Running internal tests messed up the test counter, see #192
  • Loading branch information
bschmalhofer committed Sep 28, 2020
1 parent 2188b48 commit 77695bb
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions scripts/test/SysConfig/DB/DeploymentBug13462.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,22 @@ use utf8;
# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;

use vars (qw($Self));
our $Self;

my $Helper = $Kernel::OM->Get('Kernel::System::UnitTest::Helper');

my $DBObject = $Kernel::OM->Get('Kernel::System::DB');

my $CacheType = 'UnitTestTicketCounter';
# set up object properties
$Kernel::OM->ObjectParamAdd(
'Kernel::System::UnitTest::Helper' => {
ExecuteInternalTests => 0,
},
);

my $Helper = $Kernel::OM->Get('Kernel::System::UnitTest::Helper');
my $DBObject = $Kernel::OM->Get('Kernel::System::DB');
my $CacheType = 'UnitTestTicketCounter';
my $ChildCount = $Kernel::OM->Get('Kernel::Config')->Get('UnitTest::TicketCreateNumber::ChildCount') || 5;

my $UserObject = $Kernel::OM->Get('Kernel::System::User');

# testing with three test users
my $TestUserLogin1 = $Helper->TestUserCreate(
Groups => [ 'admin', 'users' ],
) || die "Did not get test user";
Expand Down Expand Up @@ -154,6 +158,7 @@ for my $TargetUserID ( $TestUserID1, $TestUserID2, $TestUserID3 ) {
for my $ChildIndex ( 1 .. $ChildCount ) {

my %Data = %{ $ChildData{$ChildIndex} };

next CHILDINDEX if !$Data{DeploymentID};

$Self->Is(
Expand Down

0 comments on commit 77695bb

Please sign in to comment.