Skip to content

Commit

Permalink
Try to fix test: probably due to file://c:/xxx instead of file:///c:/xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Apr 15, 2020
1 parent bd22775 commit 2dc3930
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/app/testqgsmaptoolidentifyaction.cpp
Expand Up @@ -679,9 +679,10 @@ void TestQgsMapToolIdentifyAction::identifyMesh()
void TestQgsMapToolIdentifyAction::identifyVectorTile()
{
//create a temporary layer
QString vtPath = QStringLiteral( TEST_DATA_DIR ) + QStringLiteral( "/vector_tile/{z}-{x}-{y}.pbf" );
QgsDataSourceUri dsUri;
dsUri.setParam( QStringLiteral( "type" ), QStringLiteral( "xyz" ) );
dsUri.setParam( QStringLiteral( "url" ), QStringLiteral( "file://%1/vector_tile/{z}-{x}-{y}.pbf" ).arg( QStringLiteral( TEST_DATA_DIR ) ) );
dsUri.setParam( QStringLiteral( "url" ), QUrl::fromLocalFile( vtPath ).toString() );
QgsVectorTileLayer *tempLayer = new QgsVectorTileLayer( dsUri.encodedUri(), QStringLiteral( "testlayer" ) );
QVERIFY( tempLayer->isValid() );

Expand Down

0 comments on commit 2dc3930

Please sign in to comment.