tests/test-http-bad-server.t
changeset 52006 989967d2f994
parent 51181 dcaa2df1f688
child 52100 19ae7730636a
equal deleted inserted replaced
52005:028bac79cf34 52006:989967d2f994
    40 
    40 
    41   $ hg serve --config badserver.close-before-accept=true -p $HGPORT -d --pid-file=hg.pid
    41   $ hg serve --config badserver.close-before-accept=true -p $HGPORT -d --pid-file=hg.pid
    42   $ cat hg.pid > $DAEMON_PIDS
    42   $ cat hg.pid > $DAEMON_PIDS
    43 
    43 
    44   $ hg clone http://localhost:$HGPORT/ clone
    44   $ hg clone http://localhost:$HGPORT/ clone
    45   abort: error: (\$ECONNRESET\$|\$EADDRNOTAVAIL\$) (re)
    45   abort: error: (\$ECONNRESET\$|\$EADDRNOTAVAIL\$|\$ECONNREFUSED\$) (re)
    46   [100]
    46   [100]
    47 
    47 
    48 (The server exits on its own, but there is a race between that and starting a new server.
    48 (The server exits on its own, but there is a race between that and starting a new server.
    49 So ensure the process is dead.)
    49 So ensure the process is dead.)
    50 
    50