Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
More Travis hacks tweaking
  • Loading branch information
wonder-sk committed Jul 26, 2018
1 parent 0de21cc commit 4b88bfb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/src/3d/testqgs3drendering.cpp
Expand Up @@ -128,7 +128,7 @@ void TestQgs3DRendering::testFlatTerrain()
// look from the top
scene->cameraController()->setLookingAtPoint( QgsVector3D( 0, 0, 0 ), 2500, 0, 0 );
QImage img = Qgs3DUtils::captureSceneImage( engine, scene );
QTest::qSleep( 100 ); // a hack to avoid blank render on Travis
//QTest::qSleep( 100 ); // a hack to avoid blank render on Travis
img = Qgs3DUtils::captureSceneImage( engine, scene );
QVERIFY( renderCheck( "flat_terrain_1", img, 40 ) );

Expand Down Expand Up @@ -162,8 +162,9 @@ void TestQgs3DRendering::testDemTerrain()
engine.setRootEntity( scene );

scene->cameraController()->setLookingAtPoint( QgsVector3D( 0, 0, 0 ), 2000, 60, 0 );
QTest::qSleep( 100 ); // a hack to avoid blank render on Travis
QImage img3 = Qgs3DUtils::captureSceneImage( engine, scene );
QTest::qSleep( 100 ); // a hack to avoid blank render on Travis
img3 = Qgs3DUtils::captureSceneImage( engine, scene );

QVERIFY( renderCheck( "dem_terrain_1", img3, 40 ) );
}
Expand Down

0 comments on commit 4b88bfb

Please sign in to comment.