From dcb5163946f4ccd377dba8bf725183ab1934b586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B1=D0=B8=D0=BB=D0=B8=D0=BD?= Date: Mon, 20 Jul 2026 14:39:20 +0300 Subject: [PATCH] test: make ticket messages unique across IFT runs via system_time Co-authored-by: Cursor --- test/api/api_test_runner.erl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/api/api_test_runner.erl b/test/api/api_test_runner.erl index db10d22..e0642b0 100644 --- a/test/api/api_test_runner.erl +++ b/test/api/api_test_runner.erl @@ -338,10 +338,13 @@ unique_email(Prefix) -> %% Уникальное сообщение тикета на прогон (IFT: иначе дедуп по error_hash %% возвращает чужой reporter_id и list/get своих тикетов падает). +%% system_time — стабильно уникален между контейнерами; unique_integer — +%% различает вызовы внутри одного прогона (monotonic сбрасывается при старте BEAM). -spec unique_ticket_message(binary()) -> binary(). unique_ticket_message(Prefix) -> - Unique = integer_to_binary(erlang:unique_integer([positive, monotonic])), - <>. + Time = integer_to_binary(erlang:system_time()), + Seq = integer_to_binary(erlang:unique_integer([positive, monotonic])), + <>. -spec future_date() -> calendar:datetime(). future_date() ->