Commit 284fb0aa authored by Matthieu Muffato's avatar Matthieu Muffato Committed by ens-bwalts
Browse files

Somehow, only 9.6 seconds seem to elapse on Travis when sleeping 10 seconds

This happens quite often, so let's bake it in the test and make Travis
pass.
parent d288a387
......@@ -31,6 +31,11 @@ standaloneJob('Bio::EnsEMBL::Hive::RunnableDB::Dummy', {
});
my $d = time() - $t;
# Correct for Travis' built-in time machine
if ($ENV{'TRAVIS'}) {
$wait -= 1;
}
cmp_ok($d, '>=', $wait, 'The "take_time" parameter made the runnable sleep');
done_testing();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment