Web server started through QProcess is unable to receive GET requests
Unsolved
General and Desktop
-
I added a couple of more tests plus a 10s
QThread::sleep()
right after theQProcess::waitForStarted()
and it seems that it's working now (did 10 runs and not a single failure!). It is possible that the issue is also coming from the UDP synchronization that I have in place since based on it the element I'm looking for during the parsing of the XML reply will either be there or missing. In the case of it being missing but expected to be there the specific test will fail. I'm thinking of adding a confirmation reply from the UDP part of the dummy server and only after the confirmation is received by the given test, the test can proceed. -
IIRC, you have QTest;:wait for that kind of stuff.