spec(backend/notes/create): ネットワーク不安定・高負荷時ノートが重複して投稿される問題を修正 (MisskeyIO#432)

This commit is contained in:
まっちゃとーにゅ
2024-02-11 04:02:34 +09:00
committed by GitHub
parent f07a701418
commit 43ef9ca4e2
6 changed files with 51 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ import {
failedApiCall,
post,
role,
sendEnvUpdateRequest,
signup,
successfulApiCall,
testPaginationConsistency,
@@ -74,6 +75,8 @@ describe('アンテナ', () => {
let userMutedByAlice: User;
beforeAll(async () => {
await sendEnvUpdateRequest({ key: 'FORCE_IGNORE_IDEMPOTENCY_FOR_TESTING', value: 'true' });
root = await signup({ username: 'root' });
alice = await signup({ username: 'alice' });
alicePost = await post(alice, { text: 'test' });