]> granicus.if.org Git - vim/commitdiff
patch 8.1.0591: channel sort test is flaky v8.1.0591
authorBram Moolenaar <Bram@vim.org>
Fri, 14 Dec 2018 21:42:13 +0000 (22:42 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 14 Dec 2018 21:42:13 +0000 (22:42 +0100)
Problem:    Channel sort test is flaky.
Solution:   Do not check if the job is running, it may have be done very fast.

src/testdir/test_channel.vim
src/version.c

index 072bbe0284431f118326799232d93204475b29e8..bbc60485377588c92ace0690491bfe6748fd566c 100644 (file)
@@ -922,9 +922,9 @@ func Run_pipe_through_sort(all, use_buffer)
     let options.in_bot = 4
   endif
   let g:job = job_start('sort', options)
-  call assert_equal("run", job_status(g:job))
 
   if !a:use_buffer
+    call assert_equal("run", job_status(g:job))
     call ch_sendraw(g:job, "ccc\naaa\nddd\nbbb\neee\n")
     call ch_close_in(g:job)
   endif
index 3ea9dc691b593861ba8e33cba9ee460e296e6516..aafd4cba2df4b0f9f441ddde13c1cebb5643adc6 100644 (file)
@@ -799,6 +799,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    591,
 /**/
     590,
 /**/