Skip to content

Commit

Permalink
wait for NP http to start
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed May 7, 2019
1 parent aee910e commit 54dbbe1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function runKibanaServer({ procs, config, options }) {
...process.env,
},
cwd: installDir || KIBANA_ROOT,
wait: /Server running/,
wait: /http server running/,
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ describe('Server logging configuration', function () {
'--logging.json', 'false'
]);

watchFileUntil(logPath, /Server running at/, 2 * minute)
watchFileUntil(logPath, /http server running/, 2 * minute)
.then(() => {
// once the server is running, archive the log file and issue SIGHUP
fs.renameSync(logPath, logPathArchived);
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/http/http_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class HttpServer {

await this.server.start();

this.log.debug(
this.log.info(
`http server running at ${this.server.info.uri}${
config.rewriteBasePath ? config.basePath : ''
}`
Expand Down
2 changes: 1 addition & 1 deletion tasks/config/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function (grunt) {
return {
options: {
wait: false,
ready: /Server running/,
ready: /http server running/,
quiet: false,
failOnError: false
},
Expand Down

0 comments on commit 54dbbe1

Please sign in to comment.