TDD might be useful for unit tests (even that I'm not convinced of) but not for integration tests.
The bug happens very deep inside the handshake protocol and it's extremely hard to test it automatically.
The bug happens very deep inside the handshake protocol and it's extremely hard to test it automatically.
If the code doesn't belong there, get rid of it. If, for whatever reason, you want to show the reader that code used to be there, delete it and leave an explanatory comment. If you're commenting it out because you're not confident in taking it out or you plan to re-enable it in the future, well, that's what you have source control for.