A Question of Test Quality

We start by implementing a better work-around for socket.io’s lack of clean shut-down, then move into test-driving our network abstraction. We implement the connect() method, but the test is poor quality: it passes regardless of whether the code actually works. How can we check if the socket actually connected?

comments powered by Disqus