Skip to content
Snippets Groups Projects
Unverified Commit 9643fdc7 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Alexander Turenko
Browse files

test: fix flaky box/gh-4627-session-use-after-free

The problem was in that the test uses the global trigger
box.session.on_disconnect() to set a global variable by one
connection. But test-run can do multiple connects/reconnects to
the same instance. That led to multiple invocations of
box.session.on_disconnect(), which could override the global
variable in unexpected ways and moments.

The patch makes only one session execute that trigger.

Probably related to https://github.com/tarantool/test-run/issues/46


Follow up #4627

Reviewed-by: default avatarAlexander Turenko <alexander.turenko@tarantool.org>
parent e12930d0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment