Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 29, 2018
1 parent 95d2a27 commit d9e9f2a
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 d9e9f2a

Please sign in to comment.