diff src/testdir/test_channel.vim @ 22087:ff21e2962490 v8.2.1593

patch 8.2.1593: tests do not check the error number properly Commit: https://github.com/vim/vim/commit/e2e4075fad1326181edc5a131e48c644ef613693 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 4 21:18:46 2020 +0200 patch 8.2.1593: tests do not check the error number properly Problem: Tests do not check the error number properly.0 Solution: Add a colon after the error number. (closes https://github.com/vim/vim/issues/6869)
author Bram Moolenaar <Bram@vim.org>
date Fri, 04 Sep 2020 21:30:04 +0200
parents 08940efa6b4e
children dcb59b1cc0c1
line wrap: on
line diff
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -163,11 +163,11 @@ func Ch_communicate(port)
   eval handle->ch_setoptions({'callback': 's:NotUsed'})
   call ch_setoptions(handle, {'timeout': 1111})
   call ch_setoptions(handle, {'mode': 'json'})
-  call assert_fails("call ch_setoptions(handle, {'waittime': 111})", "E475")
+  call assert_fails("call ch_setoptions(handle, {'waittime': 111})", 'E475:')
   call ch_setoptions(handle, {'callback': ''})
   call ch_setoptions(handle, {'drop': 'never'})
   call ch_setoptions(handle, {'drop': 'auto'})
-  call assert_fails("call ch_setoptions(handle, {'drop': 'bad'})", "E475")
+  call assert_fails("call ch_setoptions(handle, {'drop': 'bad'})", 'E475:')
   call assert_equal(0, ch_setoptions(handle, test_null_dict()))
   call assert_equal(0, ch_setoptions(test_null_channel(), {'drop' : 'never'}))