Skip to content

Commit

Permalink
Added skip to the actual execution of the docker daemon when there is…
Browse files Browse the repository at this point in the history
… none.
  • Loading branch information
spam-n-eggs committed Jul 25, 2024
1 parent 5c498ff commit 1b97414
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/Feature/DockerEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@
$docker->containerDelete($container->getId());
expect($response->getStatusCode())->toBe(200);
expect($output)->toContain('Hello from Docker!');
});
})->skip((function () {
try {
$docker = Docker::create();
$docker->systemInfo();
return false;
} catch (Exception $e) {
return true;
}
}),'This test requires a running Docker daemon');

0 comments on commit 1b97414

Please sign in to comment.