Skip to main content

ReadyCmd

Wrapper class for ready check commands.

wait_for_port

Wait for a port to be listening. Uses ss command to check if a port is open and listening. Arguments:
  • port: Port number to wait for
Returns: ReadyCmd that checks for the port Example

wait_for_url

Wait for a URL to return a specific HTTP status code. Uses curl to make HTTP requests and check the response status. Arguments: Returns: ReadyCmd that checks the URL Example

wait_for_process

Wait for a process with a specific name to be running. Uses pgrep to check if a process exists. Arguments:
  • process_name: Name of the process to wait for
Returns: ReadyCmd that checks for the process Example

wait_for_file

Wait for a file to exist. Uses shell test command to check file existence. Arguments:
  • filename: Path to the file to wait for
Returns: ReadyCmd that checks for the file Example

wait_for_timeout

Wait for a specified timeout before considering the sandbox ready. Uses sleep command to wait for a fixed duration. Arguments:
  • timeout: Time to wait in milliseconds (minimum: 1000ms / 1 second)
Returns: ReadyCmd that waits for the specified duration Example