Patchwork [3,of,6] tests: add tests for poorly behaving HTTP server

login
register
mail settings
Submitter Yuya Nishihara
Date April 17, 2017, 2:27 p.m.
Message ID <20170417232748.fd1225d3d0354c3ed66892ac@tcha.org>
Download mbox | patch
Permalink /patch/20251/
State Not Applicable
Headers show

Comments

Yuya Nishihara - April 17, 2017, 2:27 p.m.
On Fri, 14 Apr 2017 00:44:07 -0700, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc@gmail.com>
> # Date 1492147168 25200
> #      Thu Apr 13 22:19:28 2017 -0700
> # Node ID 80bd24abcf67d5dc8b5f5bf83c796e1f71fc5bd9
> # Parent  283a95fe4ce5b91af4e2ed8ed1d3fe18ef3544bb
> tests: add tests for poorly behaving HTTP server

I've seen the following test failure randomly. Can you take a look?
Gregory Szorc - April 17, 2017, 5:21 p.m.
On Mon, Apr 17, 2017 at 7:27 AM, Yuya Nishihara <yuya@tcha.org> wrote:

> On Fri, 14 Apr 2017 00:44:07 -0700, Gregory Szorc wrote:
> > # HG changeset patch
> > # User Gregory Szorc <gregory.szorc@gmail.com>
> > # Date 1492147168 25200
> > #      Thu Apr 13 22:19:28 2017 -0700
> > # Node ID 80bd24abcf67d5dc8b5f5bf83c796e1f71fc5bd9
> > # Parent  283a95fe4ce5b91af4e2ed8ed1d3fe18ef3544bb
> > tests: add tests for poorly behaving HTTP server
>
> I've seen the following test failure randomly. Can you take a look?
>
> --- tests/test-http-bad-server.t
> +++ tests/test-http-bad-server.t.err
> @@ -51,6 +51,7 @@
>    $ hg clone http://localhost:$HGPORT/ clone
>    abort: error: Connection reset by peer (no-windows !)
>    abort: error: An existing connection was forcibly closed by the remote
> host (windows !)
> +  abort: error: ''
>    [255]
>
>    $ killdaemons.py $DAEMON_PIDS
>

I can reproduce this intermittent failure on Linux. I'll try to get to the
source of it.

Patch

--- tests/test-http-bad-server.t
+++ tests/test-http-bad-server.t.err
@@ -51,6 +51,7 @@ 
   $ hg clone http://localhost:$HGPORT/ clone
   abort: error: Connection reset by peer (no-windows !)
   abort: error: An existing connection was forcibly closed by the remote host (windows !)
+  abort: error: ''
   [255]

   $ killdaemons.py $DAEMON_PIDS