Subject: | tests hang because they try to create 2 test LDAP servers at the same time |
I have just tried installing Net-LDAP-Server-Test 0.11. and the
01-ldap.t test could not complete.
What happened is:
- a test server is created, listening on port 10636
- some tests are performed against it
- the test file then tries to create another test server, on the same port
- the test server fails the "listen" call, and shuts down without
sending anything on the pipe
- the tests hangs
I have worked around the issue by adding:
kill 15, $$server;
waitpid $$server,0;
before creating the new test server.
It's a rather ugly solution, and a "stop" method would be much cleaner.
I can't understand why everybody on CPANTesters has the tests passing,
though… if you think I'm doing something very wrong, please help :)