Skip to content

Commit

Permalink
Merge pull request #102 from mrrobot47/fix/local-redis-test
Browse files Browse the repository at this point in the history
Fix redis local test
  • Loading branch information
mrrobot47 authored May 6, 2024
2 parents 587416f + f5f2516 commit bd0ce5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ public function checkLocalRedisCacheOfSite($site)
$site_root_folder = EE_SITE_ROOT . '/' . $site;
exec("cd $site_root_folder && docker-compose exec redis redis-cli set 'easyengine' 'rocks'");
$output = exec("cd $site_root_folder && docker-compose exec redis redis-cli get 'easyengine'");
if ( '"rocks"' !== $output ) {
if ( 'rocks' !== $output ) {
throw new Exception("Local redis not working for $site site. Getting '$output' instead of 'rocks'.");
}
exec("cd $site_root_folder && docker-compose exec redis redis-cli del 'easyengine'");
Expand Down

0 comments on commit bd0ce5c

Please sign in to comment.