test: fixup flaky tests (#44379)
* test: fixup flaky test Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * test: disable flaky protocol speed test on macOS Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> * test: fixup flaky test in api-browser-window-spec.ts Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
parent
b9b982cd7d
commit
1d0cd8bf59
3 changed files with 14 additions and 9 deletions
|
@ -1737,7 +1737,8 @@ describe('protocol module', () => {
|
|||
});
|
||||
|
||||
// TODO(nornagon): this test doesn't pass on Linux currently, investigate.
|
||||
ifit(process.platform !== 'linux')('is fast', async () => {
|
||||
// test is also flaky on CI on macOS so it is currently disabled there as well.
|
||||
ifit(process.platform !== 'linux' && (!process.env.CI || process.platform !== 'darwin'))('is fast', async () => {
|
||||
// 128 MB of spaces.
|
||||
const chunk = new Uint8Array(128 * 1024 * 1024);
|
||||
chunk.fill(' '.charCodeAt(0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue