Skip to content

Commit 1dd5cdb

Browse files
committed
Increase test tolerance
1 parent 6aa935c commit 1dd5cdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/src/app/testqgsidentify.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,15 +1337,15 @@ void TestQgsIdentify::testSearchRadius()
13371337
canvas.setExtent( QgsRectangle( 5, 45, 9, 47 ) );
13381338

13391339
QCOMPARE( tool->searchRadiusMM(), 2 );
1340-
QGSCOMPARENEAR( tool->searchRadiusMU( &canvas ), 0.04724, 0.0001 );
1340+
QGSCOMPARENEAR( tool->searchRadiusMU( &canvas ), 0.04724, 0.001 );
13411341

13421342
// magnify canvas, search radius should decrease
13431343
canvas.setMagnificationFactor( 2 );
1344-
QGSCOMPARENEAR( tool->searchRadiusMU( &canvas ), 0.02362, 0.0001 );
1344+
QGSCOMPARENEAR( tool->searchRadiusMU( &canvas ), 0.02362, 0.001 );
13451345

13461346
// de-magnify canvas, search radius should increase
13471347
canvas.setMagnificationFactor( 0.5 );
1348-
QGSCOMPARENEAR( tool->searchRadiusMU( &canvas ), 0.09448, 0.0001 );
1348+
QGSCOMPARENEAR( tool->searchRadiusMU( &canvas ), 0.09448, 0.001 );
13491349
}
13501350

13511351
QGSTEST_MAIN( TestQgsIdentify )

0 commit comments

Comments
 (0)