Skip to content

Commit

Permalink
increase the timeout when checking for deprecation log (#51505)
Browse files Browse the repository at this point in the history
* increase the timeout when checking for deprecation log

* re-enable the tests
  • Loading branch information
Spencer authored Nov 25, 2019
1 parent 03dad28 commit adc11a5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/legacy/server/config/__tests__/deprecation_warnings.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const RUN_KBN_SERVER_STARTUP = require.resolve('./fixtures/run_kbn_server_startu
const SETUP_NODE_ENV = require.resolve('../../../../setup_node_env');
const SECOND = 1000;

// FLAKY: https:/elastic/kibana/issues/51479
describe.skip('config/deprecation warnings', function () {
describe('config/deprecation warnings', function () {
this.timeout(15 * SECOND);

let stdio = '';
Expand All @@ -52,9 +51,9 @@ describe.skip('config/deprecation warnings', function () {
}
});

// Either time out in 10 seconds, or resolve once the line is in our buffer
// Either time out in 60 seconds, or resolve once the line is in our buffer
return Promise.race([
new Promise((resolve) => setTimeout(resolve, 10000)),
new Promise((resolve) => setTimeout(resolve, 60000)),
new Promise((resolve, reject) => {
proc.stdout.on('data', (chunk) => {
stdio += chunk.toString('utf8');
Expand Down

0 comments on commit adc11a5

Please sign in to comment.