Skip to content

Commit 10480ec

Browse files
committed
Adjust unit tests for GitHub CI runners
1 parent e795ee9 commit 10480ec

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎packages/php-wasm/node/src/test/php.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@ describe.each(SupportedPHPVersions)('PHP %s', (phpVersion) => {
18521852
expect(response.exitCode).toEqual(0);
18531853
});
18541854

1855-
it('Frees up the heap memory after handling a request body with a size of ~512MB', async () => {
1855+
it('Frees up the heap memory after handling a request body with a size of ~400MB', async () => {
18561856
const estimateFreeMemory = () =>
18571857
php[__private__dont__use].HEAPU32.reduce(
18581858
(count: number, byte: number) =>
@@ -1872,7 +1872,7 @@ describe.each(SupportedPHPVersions)('PHP %s', (phpVersion) => {
18721872
// body pointer.
18731873
// This will allow us to estimate the amount of the memory that
18741874
// was not freed after the request.
1875-
const body = '#'.repeat(1024 * 1024 * 512 - 24);
1875+
const body = '#'.repeat(1024 * 1024 * 400 - 24);
18761876

18771877
let contentLength = 0;
18781878
const _lengthBytesUTF8 = php[__private__dont__use].lengthBytesUTF8;

‎packages/playground/blueprints/src/lib/steps/login.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('Blueprint step login', () => {
4343
});
4444
expect(response.httpStatusCode).toBe(200);
4545
expect(response.text).toContain('Edit Site');
46-
});
46+
}, 10000);
4747

4848
it('should log the user into wp-admin', async () => {
4949
await login(php, {});
@@ -52,7 +52,7 @@ describe('Blueprint step login', () => {
5252
});
5353
expect(response.httpStatusCode).toBe(200);
5454
expect(response.text).toContain('Dashboard');
55-
});
55+
}, 10000);
5656

5757
it('should log the user in if the playground_force_auto_login_as_user query parameter is set', async () => {
5858
await defineWpConfigConsts(php, {

0 commit comments

Comments
 (0)