Skip to content
Permalink
Browse files

It seems like the delay hack worked - let's make it shorter

  • Loading branch information
wonder-sk committed Jul 25, 2018
1 parent e5dbd80 commit 0de21cc70b94e409193a271dbd724ee934be7fc5
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/src/3d/testqgs3drendering.cpp
@@ -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( 1000 );
QTest::qSleep( 100 ); // a hack to avoid blank render on Travis
img = Qgs3DUtils::captureSceneImage( engine, scene );
QVERIFY( renderCheck( "flat_terrain_1", img, 40 ) );

@@ -162,6 +162,7 @@ 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 );

QVERIFY( renderCheck( "dem_terrain_1", img3, 40 ) );

0 comments on commit 0de21cc

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