Skip to content

Commit

Permalink
fix --since to wait_for_docker_container_task example / use date()
Browse files Browse the repository at this point in the history
  • Loading branch information
YannCharlou-CleverAge committed Aug 1, 2024
1 parent 0f6af2f commit 061a4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/wait_for.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function custom_wait_for_task(string $thing = 'foobar'): void
function wait_for_docker_container_task(): void
{
try {
$checkLogSince = (new \DateTimeImmutable())->format(\DateTimeInterface::RFC3339);
$checkLogSince = date(DATE_RFC3339);
run('docker run -d --rm --name helloworld alpine sh -c "echo hello world ; sleep 10"', quiet: true);
wait_for_docker_container(
containerName: 'helloworld',
Expand Down

0 comments on commit 061a4e4

Please sign in to comment.