Skip to content

Commit f780b8a

Browse files
committed
patch 8.1.0693: channel test fails sometimes
Problem: Channel test fails sometimes. Solution: Avoid race condition.
1 parent 8b62d87 commit f780b8a

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/testdir/test_channel.vim

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,17 +1650,16 @@ func Test_write_to_deleted_buffer()
16501650
return
16511651
endif
16521652
let job = job_start('echo hello', {'out_io': 'buffer', 'out_name': 'test_buffer', 'out_msg': 0})
1653-
call WaitForAssert({-> assert_equal("dead", job_status(job))})
16541653
let bufnr = bufnr('test_buffer')
1655-
call assert_equal(['hello'], getbufline(bufnr, 1, '$'))
1654+
call WaitForAssert({-> assert_equal(['hello'], getbufline(bufnr, 1, '$'))})
16561655
call assert_equal('nofile', getbufvar(bufnr, '&buftype'))
16571656
call assert_equal('hide', getbufvar(bufnr, '&bufhidden'))
1657+
16581658
bdel test_buffer
16591659
call assert_equal([], getbufline(bufnr, 1, '$'))
16601660

16611661
let job = job_start('echo hello', {'out_io': 'buffer', 'out_name': 'test_buffer', 'out_msg': 0})
1662-
call WaitForAssert({-> assert_equal("dead", job_status(job))})
1663-
call assert_equal(['hello'], getbufline(bufnr, 1, '$'))
1662+
call WaitForAssert({-> assert_equal(['hello'], getbufline(bufnr, 1, '$'))})
16641663
call assert_equal('nofile', getbufvar(bufnr, '&buftype'))
16651664
call assert_equal('hide', getbufvar(bufnr, '&bufhidden'))
16661665

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,8 @@ static char *(features[]) =
799799

800800
static int included_patches[] =
801801
{ /* Add new patch number below this line */
802+
/**/
803+
693,
802804
/**/
803805
692,
804806
/**/

0 commit comments

Comments
 (0)