mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 10:25:36 -04:00
[netinstall] check in test that loading did not time out
This commit is contained in:
parent
bd118bb457
commit
67effe4214
1 changed files with 4 additions and 0 deletions
|
@ -397,9 +397,13 @@ ItemTests::testUrlFallback()
|
||||||
// Now give the loader time to complete
|
// Now give the loader time to complete
|
||||||
QEventLoop loop;
|
QEventLoop loop;
|
||||||
connect( &c, &Config::statusReady, &loop, &QEventLoop::quit );
|
connect( &c, &Config::statusReady, &loop, &QEventLoop::quit );
|
||||||
|
QSignalSpy spy( &c, &Config::statusReady );
|
||||||
QTimer::singleShot( std::chrono::seconds(1), &loop, &QEventLoop::quit );
|
QTimer::singleShot( std::chrono::seconds(1), &loop, &QEventLoop::quit );
|
||||||
loop.exec();
|
loop.exec();
|
||||||
|
|
||||||
|
// Check it didn't time out
|
||||||
|
QCOMPARE( spy.count(), 1 );
|
||||||
|
// Check YAML-loading results
|
||||||
QCOMPARE( smash( c.statusCode() ), status );
|
QCOMPARE( smash( c.statusCode() ), status );
|
||||||
QCOMPARE( c.model()->rowCount(), count );
|
QCOMPARE( c.model()->rowCount(), count );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue