Skip to content

Commit

Permalink
Issue #1776: sync S3 objects before reading user files
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed May 18, 2022
1 parent d744cfe commit decd390
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/test/SysConfig/OTOBOCommunity/UserConfigurationLoad.t
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ for my $Test (@Tests) {
my $FilePath = $Home . '/' . $FileBasePath . $UserID . '.pm';
my $FileClass = $FileBaseClass . $UserID;

# make sure that the user file is synced to the file system before trying to read it
$Kernel::OM->Get('Kernel::Config')->SyncWithS3;

my %UserConfigResult;
if ( -e $FilePath ) {
delete $INC{$FilePath};
Expand All @@ -190,6 +193,7 @@ for my $Test (@Tests) {
{},
"$Test->{Name} ExpectedResults - Not existing user from File",
);

next USERID;
}

Expand Down

0 comments on commit decd390

Please sign in to comment.