Open SEAPUNK opened 8 years ago
Egh, writing tests is a pain. I'll redo the entire everything sometime later.
Use https://github.com/sindresorhus/get-port for port allocations.
If this requires a socketeer server, run a while loop, getting port and then creating server until you can listen to one.
Maybe if we're testing a server, we should have it all be in one test file? Not too sure. I don't know if Ava is the right choice for Socketeer testing.
Temporarily falling back to mocha for tests.
I'll stick to Mocha. I don't think Ava is a good fit for this project.
Re: Using get-port, don't. Use port 0 instead.
I need to write tests for socketeer, to test the anything and everything.