~ubuntu-branches/ubuntu/trusty/kdepimlibs/trusty

« back to all changes in this revision

Viewing changes to akonadi/tests/itemsynctest.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-04-10 21:53:31 UTC
  • mfrom: (1.1.112)
  • Revision ID: package-import@ubuntu.com-20140410215331-4skq50lp0ru1pdxo
Tags: 4:4.13.0-0ubuntu1
New upstream KDE Software Compilation release

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
          QCOMPARE( spy.count(), 0 );
101
101
        }
102
102
      }
103
 
      QTest::qWait( 1000 ); // let it finish its job
104
 
      QCOMPARE( spy.count(), 1 );
 
103
      QTRY_COMPARE( spy.count(), 1 );
105
104
      KJob *job = spy.at( 0 ).at( 0 ).value<KJob*>();
106
105
      QCOMPARE( job, syncer );
107
106
      QCOMPARE( job->error(), 0 );
168
167
        QCOMPARE( spy.count(), 0 );
169
168
      }
170
169
      syncer->deliveryDone();
171
 
      QTest::qWait( 1000 ); // let it finish its job
172
 
      QCOMPARE( spy.count(), 1 );
 
170
      QTRY_COMPARE( spy.count(), 1 );
173
171
      KJob *job = spy.at( 0 ).at( 0 ).value<KJob*>();
174
172
      QCOMPARE( job, syncer );
175
173
      QCOMPARE( job->error(), 0 );