Skip to content
Permalink
Browse files

More Travis hacks tweaking

  • Loading branch information
wonder-sk committed Jul 25, 2018
1 parent 0de21cc commit 4b88bfb7cec86b8d21c9e7f95cf81dfa69f2e26f
Showing with 3 additions and 2 deletions.
  1. +3 −2 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( 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 ) );

@@ -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 ) );
}

0 comments on commit 4b88bfb

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