##// END OF EJS Templates
tests: add a substitution for ECONNRESET/WSAECONNRESET messages
Matt Harbison -
r35232:a037b664 default
parent child Browse files
Show More
@@ -54,6 +54,13 b' substitutions = ['
54 # FormatMessage(ERROR_PATH_NOT_FOUND)
54 # FormatMessage(ERROR_PATH_NOT_FOUND)
55 br'The system cannot find the path specified',
55 br'The system cannot find the path specified',
56 ),
56 ),
57 br'$ECONNRESET$': (
58 # strerror()
59 br'Connection reset by peer',
60
61 # FormatMessage(WSAECONNRESET)
62 br'An existing connection was forcibly closed by the remote host',
63 ),
57 }
64 }
58
65
59 for replace, msgs in _errors.items():
66 for replace, msgs in _errors.items():
@@ -36,8 +36,7 b' Failure to accept() socket should result'
36 $ cat hg.pid > $DAEMON_PIDS
36 $ cat hg.pid > $DAEMON_PIDS
37
37
38 $ hg clone http://localhost:$HGPORT/ clone
38 $ hg clone http://localhost:$HGPORT/ clone
39 abort: error: Connection reset by peer (no-windows !)
39 abort: error: $ECONNRESET$
40 abort: error: An existing connection was forcibly closed by the remote host (windows !)
41 [255]
40 [255]
42
41
43 (The server exits on its own, but there is a race between that and starting a new server.
42 (The server exits on its own, but there is a race between that and starting a new server.
@@ -54,8 +53,7 b' TODO: this usually outputs good results,'
54 error: '' on FreeBSD and OS X.
53 error: '' on FreeBSD and OS X.
55 What we ideally want are:
54 What we ideally want are:
56
55
57 abort: error: Connection reset by peer (no-windows !)
56 abort: error: $ECONNRESET$
58 abort: error: An existing connection was forcibly closed by the remote host (windows !)
59
57
60 The flakiness in this output was observable easily with
58 The flakiness in this output was observable easily with
61 --runs-per-test=20 on macOS 10.12 during the freeze for 4.2.
59 --runs-per-test=20 on macOS 10.12 during the freeze for 4.2.
General Comments 0
You need to be logged in to leave comments. Login now