Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A kill function for testing/Process #962

Open
cxyzhang0 opened this issue Jan 22, 2025 · 1 comment
Open

A kill function for testing/Process #962

cxyzhang0 opened this issue Jan 22, 2025 · 1 comment

Comments

@cxyzhang0
Copy link

Hi,
In case of testing a command which starts a long-running service, how would the test stop it?
Specifically, I am using CmdRunner.run() to start the service; it returns a Process. My test interacts with the service and ends. But the service keeps running. I'd like to kill the Child process in Process. But there is no such api on Process.
Is it possible to add such functionality?

Thanks.

@tony-iqlusion
Copy link
Member

CmdRunner is mostly designed for testing commands that terminate as opposed to ones that run indefinitely

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

No branches or pull requests

2 participants