Skip to content
Permalink
Browse files

Fix error in task manager test

  • Loading branch information
nyalldawson committed Aug 7, 2018
1 parent 7ef0e9e commit 7b971e25df37a97eb52341df03961857d46beeae
Showing with 6 additions and 5 deletions.
  1. +6 −5 tests/src/core/testqgstaskmanager.cpp
@@ -441,6 +441,7 @@ void TestQgsTaskManager::addTask()
{
QCoreApplication::processEvents();
}
flushEvents();
}

void TestQgsTaskManager::taskTerminationBeforeDelete()
@@ -663,15 +664,15 @@ void TestQgsTaskManager::subTask()
QVERIFY( subsubFinished.count() > 0 );

// another test
parent = new ProgressReportingTask();
subTask = new ProgressReportingTask();
subsubTask = new ProgressReportingTask();
parent = new ProgressReportingTask( QStringLiteral( "sub_task_parent_task_7" ) );
subTask = new ProgressReportingTask( QStringLiteral( "sub_task_sub_task_7" ) );
subsubTask = new ProgressReportingTask( QStringLiteral( "sub_task_sub_sub_task_7" ) );
subTask->addSubTask( subsubTask );
parent->addSubTask( subTask );
manager.addTask( parent );
while ( subsubTask->status() != QgsTask::Running
&& subTask->status() != QgsTask::Running
&& parent->status() != QgsTask::Running )
|| subTask->status() != QgsTask::Running
|| parent->status() != QgsTask::Running )
{
QCoreApplication::processEvents();
}

0 comments on commit 7b971e2

Please sign in to comment.
You can’t perform that action at this time.