# HG changeset patch # User Bram Moolenaar # Date 1627675204 -7200 # Node ID 42c9386eebf429e579d35047e78ea88a54f5cd75 # Parent 7802d2305b486fbed21da8248d14f4515e99fb71 patch 8.2.3253: channel test fails randomly Commit: https://github.com/vim/vim/commit/890ee4e2be1dca0c07a91f836e26baead952ae7c Author: Bram Moolenaar Date: Fri Jul 30 21:56:10 2021 +0200 patch 8.2.3253: channel test fails randomly Problem: Channel test fails randomly. Solution: Add a sleep after sending the "echoerr" command. (Michael Soyka) diff --git a/src/testdir/test_channel.py b/src/testdir/test_channel.py --- a/src/testdir/test_channel.py +++ b/src/testdir/test_channel.py @@ -114,6 +114,11 @@ class ThreadedTCPRequestHandler(socketse print("sending: {0}".format(cmd)) self.request.sendall(cmd.encode('utf-8')) response = "ok" + # Wait a bit, so that the "ex" command is handled + # before the "ch_evalexpr() returns. Otherwise we are + # outside the try/catch when the "ex" command is + # handled. + time.sleep(0.02) elif decoded[1] == 'bad command': cmd = '["ex","foo bar"]' print("sending: {0}".format(cmd)) diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -253,11 +253,6 @@ endfunc func Test_communicate_ipv6() CheckIPv6 - " FIXME: this test is very flaky on MS-Windows - if has('win32') - throw 'Skipped: test is very flaky with MS-Windows' - endif - call Test_communicate() endfunc diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3253, +/**/ 3252, /**/ 3251,