postgis test: ensure threaded test fails early
This commit is contained in:
parent
5aecb3c5f7
commit
5083a24f89
1 changed files with 4 additions and 0 deletions
|
@ -476,6 +476,10 @@ if 'postgis' in mapnik.DatasourceCache.plugin_names() \
|
|||
fs = ds.all_features()
|
||||
|
||||
def test_threaded_create(NUM_THREADS=100):
|
||||
# run one to start before thread loop
|
||||
# to ensure that a throw stops the test
|
||||
# from running all threads
|
||||
create_ds()
|
||||
for i in range(NUM_THREADS):
|
||||
t = threading.Thread(target=create_ds)
|
||||
t.start()
|
||||
|
|
Loading…
Reference in a new issue