You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Jesse Glick <Je...@netbeans.com> on 2001/01/25 13:32:06 UTC

get.xml junit test is impolite

When I try to run the JUnit tests, I get a failure in get.xml (test for
<get>): test6 fails (cannot open socket). This should be expected: I am
running no HTTP server! test5 gets the expected exception, and then it
continues on to test6 which cannot work. I am guessing this is an
oversight in the test suite.

Of course, you can work around it the hard way:

1. su
2. nc -l -p 80
3. Wait for request
4. Send "HTTP/1.0 200 OK\n\n" and EOF
5. Test passes

-Jesse

-- 
Jesse Glick   <ma...@netbeans.com>
NetBeans, Open APIs  <http://www.netbeans.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR