public function testCopiesTable($table)
{
$job = self::$table->copy($table);
$backoff = new ExponentialBackoff(8);
$backoff->execute(function () use($job) {
$job->reload();
if (!$job->isComplete()) {
throw new \Exception();
}
});
if (!$job->isComplete()) {
$this->fail('Job failed to complete within the allotted time.');
}
$this->assertArrayNotHasKey('errorResult', $job->info()['status']);
}