Skip to content

Commit 4628dad

Browse files
committed
Increase timeout for tests that spawn subprocesses to avoid transient failures.
1 parent 2619add commit 4628dad

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

graal-nodejs/test/graal/unit/async-context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const {spawnSync} = require('child_process');
5151

5252
describe.skip('AsyncContext', function () {
5353
it('works with setTimeout', function () {
54-
this.timeout(20000);
54+
this.timeout(30000);
5555

5656
if (typeof AsyncContext === 'undefined') {
5757
const result = spawnSync(process.execPath, ['--experimental-options', '--async-context', '-e', code.toString() + 'code();']);

graal-nodejs/test/graal/unit/awt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe.skipOnNode('awt', function () {
4848
}
4949

5050
it('should work in headless mode', function() {
51-
this.timeout(20000);
51+
this.timeout(30000);
5252
if (!isAWTAvailable()) {
5353
this.skip();
5454
return;
@@ -64,7 +64,7 @@ describe.skipOnNode('awt', function () {
6464
assert.strictEqual(result.stderr.toString(), '');
6565
});
6666
it('should work in non-headless mode', function() {
67-
this.timeout(20000);
67+
this.timeout(30000);
6868
if (!isAWTAvailable() || java.awt.GraphicsEnvironment.isHeadless()) {
6969
this.skip();
7070
return;

graal-nodejs/test/graal/unit/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ describe('Context', function () {
8989
assert.ok(module.Context_IsCodeGenerationFromStringsAllowed());
9090
});
9191
it('should return false for --js.disable-eval', function () {
92-
this.timeout(20000);
92+
this.timeout(30000);
9393
var result = child_process.spawnSync(process.execPath, [
9494
'--js.disable-eval',
9595
'--experimental-options',

graal-nodejs/test/graal/unit/javaMessages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const {
5151

5252

5353
describe('Java interop messages', function() {
54-
this.timeout(10000);
54+
this.timeout(20000);
5555
if (!module.hasJavaInterop()) {
5656
// no interop
5757
return;

graal-nodejs/test/graal/unit/spawn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function checkTheAnswerToLifeTheUniverseAndEverything(answer) {
5151
}
5252

5353
describe('Spawn', function () {
54-
this.timeout(20000);
54+
this.timeout(30000);
5555
it('should spawn a child node process when env. variables are cleared', function () {
5656
var result = spawnSync(process.execPath, ['-p', '6*7'], {env: {}});
5757
checkTheAnswerToLifeTheUniverseAndEverything(result);

graal-nodejs/test/graal/unit/waitAsync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const assert = require('assert');
4343

4444
describe.skipOnNode('waitAsync', function () {
4545
it('should work with finite timeout', function() {
46-
this.timeout(20000);
46+
this.timeout(30000);
4747
var child_process = require('child_process');
4848
var spawnSync = child_process.spawnSync;
4949

@@ -75,7 +75,7 @@ describe.skipOnNode('waitAsync', function () {
7575
assert.strictEqual(result.stderr.toString(), '');
7676
});
7777
it('should work with infinite timeout', function() {
78-
this.timeout(20000);
78+
this.timeout(30000);
7979
var child_process = require('child_process');
8080
var spawnSync = child_process.spawnSync;
8181

0 commit comments

Comments
 (0)