Problem: Channel test fails on MS-Windows, connect() takes too long.
Solution: Adjust the test for MS-Windows using "waittime".
#endif
}
- if (errno == ECONNREFUSED)
+ /* Only retry for netbeans. TODO: can we use a waittime instead? */
+ if (errno == ECONNREFUSED && close_cb != NULL)
{
sock_close(sd);
if ((sd = (sock_T)socket(AF_INET, SOCK_STREAM, 0)) == (sock_T)-1)
" Oops, port does exists.
call ch_close(handle)
else
- " Failed connection doesn't wait the full time.
+ " Failed connection doesn't wait the full time on Unix.
let elapsed = reltime(start)
- call assert_true(reltimefloat(elapsed) < 1.0)
+ call assert_true(reltimefloat(elapsed) < (has('unix') ? 1.0 : 3.0))
endif
endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1289,
/**/
1288,
/**/