tests/test-bad-pull.t
author Pierre-Yves David <pierre-yves.david@fb.com>
Tue, 04 Nov 2014 21:48:23 +0000
changeset 23213 23a78662b6dd
parent 22959 10116463b0b1
child 25472 4d2b9b304ad0
permissions -rw-r--r--
patchbomb: extract 'getbundlemsgs' closure in its own function Keep marching toward the promised land of simplification!

#require serve killdaemons

#if windows
  $ hg clone http://localhost:$HGPORT/ copy
  abort: * (glob)
  [255]
#else
  $ hg clone http://localhost:$HGPORT/ copy
  abort: error: Connection refused
  [255]
#endif

  $ test -d copy
  [1]

  $ python "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid
  $ cat dumb.pid >> $DAEMON_PIDS
  $ hg clone http://localhost:$HGPORT/foo copy2
  abort: HTTP Error 404: * (glob)
  [255]
  $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS