test: add tests for Socket.setNoDelay
Add tests for the Socket.setNoDelay function. The tests use the handle
option when creating a socket so that the function can be tested without having to rely on any underlying transport layer which could result in a flakey test (platform/timing dependent).
I wasn't able to figure out how to test the case whereby setNoDelay
is called before the socket connects - suggestions welcome here.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines