From ba97d94738a03d9d23618577644f7da9feefb389 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sun, 5 May 2024 21:35:46 +0200 Subject: [PATCH] test: reset some static vars to avoid affecting other tests --- test/regress_bufferevent.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/regress_bufferevent.c b/test/regress_bufferevent.c index 48a666b6..fa908100 100644 --- a/test/regress_bufferevent.c +++ b/test/regress_bufferevent.c @@ -866,6 +866,10 @@ test_bufferevent_connect_fail_eventcb(void *arg) fake_listener = fake_listener_create(&localhost); + n_strings_read = 0; + n_reads_invoked = 0; + n_events_invoked = 0; + tt_int_op(n_events_invoked, ==, 0); bev = bufferevent_socket_new(data->base, -1, flags);