~unity-api-team/keeper/devel

« back to all changes in this revision

Viewing changes to tests/integration/helpers/helpers-test.cc

  • Committer: Xavi Garcia Mena
  • Date: 2016-09-15 15:29:04 UTC
  • Revision ID: xavi.garcia.mena@canonical.com-20160915152904-bh5fajl7271qjs6w
lp:~xavi-garcia-mena/keeper/wait-ual-timer-increased rolled back

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
    urls << "blah" << "/tmp";
157
157
    helper.start(urls);
158
158
 
159
 
    WAIT_FOR_SIGNALS(spy, 1, Helper::MAX_UAL_WAIT_TIME + 1000);
 
159
    WAIT_FOR_SIGNALS(spy, 1, 5000);
160
160
 
161
161
    ASSERT_EQ(spy.count(), 1);
162
162
    QList<QVariant> arguments = spy.takeFirst();
179
179
    // the inactive helper sleeps for 100 seconds so
180
180
    // if we get the 2 signals it means it was stopped due to inactivity
181
181
    // We can also check at the end for the state, which should be CANCELLED
182
 
    WAIT_FOR_SIGNALS(spy, 2, BackupHelper::MAX_INACTIVITY_TIME + 2000);
 
182
    WAIT_FOR_SIGNALS(spy, 2, 15000);
183
183
 
184
184
    ASSERT_EQ(spy.count(), 2);
185
185
    QList<QVariant> arguments = spy.takeFirst();