/[jscoverage]/trunk/tests/proxy-bad-response-body.sh
ViewVC logotype

Diff of /trunk/tests/proxy-bad-response-body.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 569 by siliconforks, Sat Jan 2 04:55:54 2010 UTC revision 570 by siliconforks, Mon May 24 03:13:28 2010 UTC
# Line 30  Line 30 
30    
31  trap 'cleanup' 0 1 2 3 15  trap 'cleanup' 0 1 2 3 15
32    
33  export PATH=.:..:$PATH  . ./common.sh
   
 if [ -z "$VALGRIND" ]  
 then  
   delay=0.2  
 else  
   delay=2  
 fi  
34    
35  ./http-server-bad-body &  ./http-server-bad-body &
36  origin_server_pid=$!  origin_server_pid=$!
# Line 46  Line 39 
39  proxy_server_pid=$!  proxy_server_pid=$!
40  proxy_server_port=8080  proxy_server_port=8080
41    
42  sleep $delay  wait_for_server http://127.0.0.1:8000/ping
43    wait_for_server http://127.0.0.1:8080/jscoverage.html
44    
45  echo 200 > EXPECTED  echo 200 > EXPECTED
46  ! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://127.0.0.1:8000/index.html 2> /dev/null > ACTUAL  ! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://127.0.0.1:8000/index.html 2> /dev/null > ACTUAL

Legend:
Removed from v.569  
changed lines
  Added in v.570

  ViewVC Help
Powered by ViewVC 1.1.24