Skip to content

Commit

Permalink
e2e/timelines.tsで個々のテストに対するtimeoutを削除, maxConcurrency: 32
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Jul 17, 2024
1 parent 38a5e09 commit 44f0064
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/backend/jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,5 @@ module.exports = {
logHeapUsage: true, // To debug when out-of-memory happens on CI
workerIdleMemoryLimit: '1GiB', // Limit the worker to 1GB (GitHub Workflows dies at 2GB)

maxConcurrency: 8,
maxConcurrency: 32,
};
10 changes: 5 additions & 5 deletions packages/backend/test/e2e/timelines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ describe('Timelines', () => {
assert.strictEqual(res.body.some(note => note.id === bobNote2.id), true);
assert.strictEqual(res.body.some(note => note.id === carolNote1.id), false);
assert.strictEqual(res.body.some(note => note.id === carolNote2.id), false);
}, 1000 * 10);
});

test.concurrent('フォローしているユーザーのチャンネル投稿が含まれない', async () => {
const [alice, bob] = await Promise.all([signup(), signup()]);
Expand Down Expand Up @@ -672,7 +672,7 @@ describe('Timelines', () => {

assert.strictEqual(res.body.some(note => note.id === bobNote1.id), false);
assert.strictEqual(res.body.some(note => note.id === bobNote2.id), true);
}, 1000 * 10);
});
});

describe('Social TL', () => {
Expand Down Expand Up @@ -812,7 +812,7 @@ describe('Timelines', () => {

assert.strictEqual(res.body.some(note => note.id === bobNote1.id), false);
assert.strictEqual(res.body.some(note => note.id === bobNote2.id), true);
}, 1000 * 10);
});
});

describe('User List TL', () => {
Expand Down Expand Up @@ -1025,7 +1025,7 @@ describe('Timelines', () => {

assert.strictEqual(res.body.some(note => note.id === bobNote1.id), false);
assert.strictEqual(res.body.some(note => note.id === bobNote2.id), true);
}, 1000 * 10);
});

test.concurrent('リスインしているユーザーの自身宛ての visibility: specified なノートが含まれる', async () => {
const [alice, bob] = await Promise.all([signup(), signup()]);
Expand Down Expand Up @@ -1184,7 +1184,7 @@ describe('Timelines', () => {

assert.strictEqual(res.body.some(note => note.id === bobNote1.id), false);
assert.strictEqual(res.body.some(note => note.id === bobNote2.id), true);
}, 1000 * 10);
});

test.concurrent('[withChannelNotes: true] チャンネル投稿が含まれる', async () => {
const [alice, bob] = await Promise.all([signup(), signup()]);
Expand Down

0 comments on commit 44f0064

Please sign in to comment.