~charlesk/keeper/tar-creator-boogs

« back to all changes in this revision

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

  • Committer: Xavi Garcia Mena
  • Date: 2016-09-15 13:48:31 UTC
  • mfrom: (106.2.2 keeper-landing)
  • Revision ID: xavi.garcia.mena@canonical.com-20160915134831-6xo6lp6qtkcp3izp
mergeĀ lp:~xavi-garcia-mena/keeper/wait-ual-timer-increased

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, 5000);
 
159
    WAIT_FOR_SIGNALS(spy, 1, Helper::MAX_UAL_WAIT_TIME + 1000);
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, 15000);
 
182
    WAIT_FOR_SIGNALS(spy, 2, BackupHelper::MAX_INACTIVITY_TIME + 2000);
183
183
 
184
184
    ASSERT_EQ(spy.count(), 2);
185
185
    QList<QVariant> arguments = spy.takeFirst();