diff --git a/tests/test_stream_service.c b/tests/test_stream_service.c index b4eb2bc6..5f88e243 100644 --- a/tests/test_stream_service.c +++ b/tests/test_stream_service.c @@ -528,7 +528,9 @@ static void test_bootstrap(void) { CHECK(stream_probe_open(subscriber, nodes[3]->node_id, 0, &probe) == STREAM_OK); bootstrap_wait_response(NULL, 0); for (unsigned reset = 0; reset < 2; reset++) { - test_clock_run_for(ua, 20000); + /* Сроки от открытия пробы: ожидание handshake первого сброса не сдвигает второй к истечению deadline. */ + uint64_t reset_at = started + (1 + 2 * reset) * 10000; + while (get_time_tb() < reset_at) test_clock_poll(ua, 100); CHECK(stream_receive_get_info(probe, &info) == STREAM_OK && info.state != STREAM_RECEIVE_CLOSED && !info.info_ready); reinits = bootstrap.reinits; etcp_conn_reinit(conn, "stream pending deadline test");