c++ - How to write a test for a network listener? -


i writing piece of c++ code listen network connections. i'm using gtest write unit tests i've reached problem don't know how fix:

how can test functions listen network connections? if put in unit test they'll block.

any ideas?

i'm going use py.test run functional tests, though c++ project.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -