Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@joelambert
Copy link

@joelambert joelambert commented May 3, 2023

  • Added an optional second parameter to the execute() method that enables a custom timeout to be set.
  • Added setStartCommandTimeout() to enable custom timeout to be set on the start command

Test cases added and README updated.

Copy link
Member

@freekmurze freekmurze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! A few remarks / questions

@@ -0,0 +1,22 @@
<?php

declare(strict_types=1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use strict types anywhere. Could you remove this line?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to remove, I was just following the pattern you already had in tests/DockerContainerTest.php


public array $commands = [];

protected float $startCommandTimeout = 60;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this value actually being used?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@freekmurze freekmurze merged commit d78cae8 into spatie:main May 15, 2023
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants