diff --git a/generators/micronaut/generator.js b/generators/micronaut/generator.js index 8c46f116..95aa3ddf 100644 --- a/generators/micronaut/generator.js +++ b/generators/micronaut/generator.js @@ -207,8 +207,8 @@ export default class extends BaseApplicationGenerator { if (application.prodDatabaseTypeMysql) { this.editFile(`${application.dockerServicesDir}mysql.yml`, content => content - .replace(/test: [^\n]*/, 'test: [\'CMD-SHELL\', \'mysql -e "SHOW DATABASES;" && sleep 5\']') - .replace('timeout: 5s', 'timeout: 10s') + .replace(/test: [^\n]*/, "test: ['CMD-SHELL', 'mysql -e \"SHOW DATABASES;\" && sleep 5']") + .replace('timeout: 5s', 'timeout: 10s'), ); } },