mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
More task test debugging, fixes
This commit is contained in:
parent
7b971e25df
commit
5e1184a61d
@ -711,13 +711,13 @@ void TestQgsTaskManager::taskId()
|
||||
|
||||
//create manager with some tasks
|
||||
QgsTaskManager manager;
|
||||
TestTask *task = new TestTask();
|
||||
TestTask *task2 = new TestTask();
|
||||
TestTask *task = new TestTask( QStringLiteral( "task_id_1" ) );
|
||||
TestTask *task2 = new TestTask( QStringLiteral( "task_id_2" ) );
|
||||
manager.addTask( task );
|
||||
manager.addTask( task2 );
|
||||
|
||||
//also a task not in the manager
|
||||
TestTask *task3 = new TestTask();
|
||||
TestTask *task3 = new TestTask( QStringLiteral( "task_id_3" ) );
|
||||
|
||||
QCOMPARE( manager.taskId( nullptr ), -1L );
|
||||
QCOMPARE( manager.taskId( task ), 1L );
|
||||
@ -725,6 +725,7 @@ void TestQgsTaskManager::taskId()
|
||||
QCOMPARE( manager.taskId( task3 ), -1L );
|
||||
|
||||
delete task3;
|
||||
flushEvents();
|
||||
}
|
||||
|
||||
void TestQgsTaskManager::waitForFinished()
|
||||
|
Loading…
x
Reference in New Issue
Block a user