Commit a71cdee9 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Pop3Test: handle test failing before server thread would get created

GIT_SILENT
parent 3e54f72b
Pipeline #78083 skipped
......@@ -157,9 +157,12 @@ void Pop3Test::initTestCase()
void Pop3Test::cleanupTestCase()
{
mFakeServerThread->quit();
if (!mFakeServerThread->wait(10000)) {
qWarning() << "The fake server thread has not yet finished, what is wrong!?";
// test might have failed before thread got created
if (mFakeServerThread) {
mFakeServerThread->quit();
if (!mFakeServerThread->wait(10000)) {
qWarning() << "The fake server thread has not yet finished, what is wrong!?";
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment