Skip to content

Commit

Permalink
Make test better
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvaka committed Feb 12, 2019
1 parent 8142a2c commit 695a0e1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/sendfiletest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,15 @@ class TestSendFile : public QObject

ft->start();

QVERIFY(spyTransfer.count() || spyTransfer.wait(1000000000));
QVERIFY(spyTransfer.count() || spyTransfer.wait());

if (ft->error()) qWarning() << "fterror" << ft->errorString();
if (ft->error()) {
qWarning() << "fterror" << ft->errorString();
}

QCOMPARE(ft->error(), 0);
// HACK | FIXME: Why does this break the test?
//QCOMPARE(spyUpload.count(), 1);

QCOMPARE(spyUpload.count(), 1);

QFile resultFile(destFile), originFile(aFile);
QVERIFY(resultFile.open(QIODevice::ReadOnly));
Expand Down

0 comments on commit 695a0e1

Please sign in to comment.