Skip to content

Commit 12cfb31

Browse files
committedNov 11, 2016
Make file downloader test more stable
1 parent e6dc522 commit 12cfb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tests/src/python/test_qgsfiledownloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _make_download(self, url, destination, cancel=False):
5353
downloader.downloadExited.connect(loop.quit)
5454

5555
if cancel:
56-
QTimer.singleShot(1000, downloader.onDownloadCanceled)
56+
downloader.downloadProgress.connect(downloader.onDownloadCanceled)
5757

5858
loop.exec_()
5959

0 commit comments

Comments
 (0)
Please sign in to comment.