Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
(cherry-picked from d9e9f2a)
  • Loading branch information
nyalldawson committed Apr 2, 2018
1 parent d88ffc6 commit e863dc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/qgsvectorfilewritertask.cpp
Expand Up @@ -47,7 +47,7 @@ void QgsVectorFileWriterTask::cancel()

bool QgsVectorFileWriterTask::run()
{
if ( !mError != QgsVectorFileWriter::NoError )
if ( mError != QgsVectorFileWriter::NoError )
return false;

connect( mOptions.feedback, &QgsFeedback::progressChanged, this, &QgsVectorFileWriterTask::setProgress );
Expand Down
4 changes: 2 additions & 2 deletions tests/src/python/test_qgsvectorfilewritertask.py
Expand Up @@ -97,8 +97,8 @@ def testLayerRemovalBeforeRun(self):
while not self.success and not self.fail:
QCoreApplication.processEvents()

self.assertFalse(self.success)
self.assertTrue(self.fail)
self.assertTrue(self.success)
self.assertFalse(self.fail)

def testNoLayer(self):
"""test that failure (and not crash) occurs when no layer set"""
Expand Down

0 comments on commit e863dc6

Please sign in to comment.