Skip to content

Commit

Permalink
[browser tests] [browser-utils] [find-replace] increase testsuites ti…
Browse files Browse the repository at this point in the history
…meout

These test suites executes early, a the same time plugins are started. The default 2000ms
timeout would occasionally seemingly not be enough. Increasing it a bit.

e.g.:
2023-02-17T20:28:21.717Z root INFO   1 failing
2023-02-17T20:28:21.719Z root INFO   1) animationFrame
       should resolve after the given number of frames:
     Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

2023-02-20T14:54:45.051Z root INFO   1 failing
2023-02-20T14:54:45.051Z root INFO   1) Find and Replace
       "after each" hook for "Replace in the active explorer with the current editor":
     Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>
  • Loading branch information
marcdumais-work committed Feb 20, 2023
1 parent 12edc20 commit 9edf654
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/api-tests/src/browser-utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

// @ts-check
describe('animationFrame', function () {
this.timeout(5_000);
const { assert } = chai;
const { animationFrame } = require('@theia/core/lib/browser/browser');

Expand Down
2 changes: 1 addition & 1 deletion examples/api-tests/src/find-replace.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

// @ts-check
describe('Find and Replace', function () {

this.timeout(5_000);
const { assert } = chai;

const { animationFrame } = require('@theia/core/lib/browser/browser');
Expand Down

0 comments on commit 9edf654

Please sign in to comment.