hoelzro / sahara-sync

A free software (AGPL) alternative to Dropbox
6 stars 0 forks source link

Fix test suite to work in parallel #57

Open hoelzro opened 12 years ago

hoelzro commented 12 years ago

Currently, the test suite will occasionally fail when run with more than one job. This is because some of the tests use Test::Sahara::Proxy and kill the service, and another Test::TCP instance claims its port.

Possible solutions:

Either way, we'll probably have to wrap Test::TCP's constructor and uses of empty_port.

hoelzro commented 12 years ago

These two solutions may not work either, since the OS could allocate the ephemeral port that was allocated to the proxy just the same.