Skip to content

Commit

Permalink
Updates more AMP calls to the new names
Browse files Browse the repository at this point in the history
  • Loading branch information
azambon committed Jan 10, 2025
1 parent a900147 commit c557de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/DummyFilesystemWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ public function work(QueuedJob $job): Promise
return call(function () use ($job) {
$content = '';
if (yield File\exists($this->filename)) {
$content = yield \Amp\File\get($this->filename);
$content = yield File\read($this->filename);
}
if ($this->duration) {
yield delay($this->duration * 1000);
}
//The date() function does not support microseconds, whereas DateTime does.
$now = new \DateTime('now');
$content .= $now->format('U u') . ' - ' . serialize($job->getPayloadData()) . PHP_EOL;
yield File\put($this->filename, $content);
yield File\write($this->filename, $content);
});
}
}
1 change: 0 additions & 1 deletion tests/KernelTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use org\bovigo\vfs\vfsStream;
use Symfony\Component\Yaml\Yaml;
use function Amp\call;
use function Amp\File\exists;
use function Amp\File\filesystem;

class KernelTestCase extends BeanstalkTestCase
Expand Down

0 comments on commit c557de3

Please sign in to comment.