Skip to content


Fix intermittent QgsMapLayerStore test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 8, 2017
1 parent 9ee9df7 commit 01f1222
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/python/
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from qgis.PyQt.QtCore import QT_VERSION_STR
import sip
from qgis.PyQt.QtTest import QSignalSpy
from time import sleep


Expand Down Expand Up @@ -201,7 +202,11 @@ def test_mapLayersByName(self):
self.assertEqual(store.mapLayersByName('test2'), [l2])

#duplicate name

# little bit of a hack - we don't want a duplicate ID and since IDs are currently based on time we wait a bit here
l3 = createLayer('test')

self.assertEqual(set(store.mapLayersByName('test')), {l1, l3})

Expand Down

0 comments on commit 01f1222

Please sign in to comment.