forked from mtusi2026/mtusi2026lab3
feat: add idempotency-key
This commit is contained in:
@@ -45,6 +45,7 @@ describe('Безопасность при конкурентном доступ
|
||||
sendTasks.push(
|
||||
request(server)
|
||||
.post(`/api/v1/chats/${chat.body.id}/messages`)
|
||||
.set('Idempotency-Key', randomUUID())
|
||||
.set('Authorization', bearer(clients[c]))
|
||||
.send({ text: `client-${c}-message-${m}` }),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user