From b93ae8e8a203f09e63ff98e284c46b92fe7611bd Mon Sep 17 00:00:00 2001 From: Foo Date: Sun, 30 Apr 2017 03:40:21 +0300 Subject: [PATCH] Do not reuse existing socket paths --- tests/test_in_vterm/test_tmux.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_in_vterm/test_tmux.py b/tests/test_in_vterm/test_tmux.py index 88a7d963..a6a7c5a5 100755 --- a/tests/test_in_vterm/test_tmux.py +++ b/tests/test_in_vterm/test_tmux.py @@ -94,6 +94,8 @@ def get_expected_result(tmux_version, def main(attempts=3): vterm_path = os.path.join(VTERM_TEST_DIR, 'path') socket_path = os.path.abspath('tmux-socket-{0}'.format(attempts)) + while os.path.exists(socket_path): + socket_path = socket_path + 'x' rows = 50 cols = 200