changeset 25433:42c9386eebf4 v8.2.3253

patch 8.2.3253: channel test fails randomly Commit: https://github.com/vim/vim/commit/890ee4e2be1dca0c07a91f836e26baead952ae7c Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Jul 2021 22:00:04 +0200
parents 7802d2305b48
children b76d67278a14
files src/testdir/test_channel.py src/testdir/test_channel.vim src/version.c
diffstat 3 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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))
--- 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
 
--- 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,