$ make test-storage
./scripts/test-storage.sh
=== RUN   TestIdempotencyTransactionAndExpiry
2026/11/07 06:23:42 INFO connected to database db=lab3_atomic_1794032622_72743
2026/11/07 06:23:42 INFO successfully initialized migrator
2026/11/07 06:23:42 INFO successfully loaded migrations error=<nil>
2026/11/07 06:23:42 INFO postgres_pool_config max_conns=8 connect_timeout=500ms statement_timeout_ms=2000
2026/11/07 06:23:42 INFO successfully connected to postgres pool
2026/11/07 06:23:42 ERROR Query pid=2394 sql="INSERT INTO message_idempotency(user_id,method,chat_id,key,request_hash,message_id,expires_at)\n        VALUES($1,'POST',$2,$3,$4,$5,clock_timestamp()+interval '24 hours')\n        ON CONFLICT(user_id,method,chat_id,key) DO UPDATE SET request_hash=EXCLUDED.request_hash,\n        message_id=EXCLUDED.message_id,expires_at=EXCLUDED.expires_at" args="[1d7bf1ed-5e51-4386-8e37-c85fcf19ed03 caa96943-87d0-4299-965f-4883c521417e failure-key ec4f768f0c23763033fafeb1a2d60421a3751a5182e353b9d6daa15e03519614 e918991d-0367-466a-bf0c-2029e1ebfeb1]" err="ERROR: synthetic failure (SQLSTATE P0001)" ts=169.75µs
    idempotency_test.go:137: rollback removed both side effect and key; expired key created one new message
--- PASS: TestIdempotencyTransactionAndExpiry (0.03s)
PASS
