aws-deadline / deadline-cloud-test-fixtures

This package contains pytest fixtures that are used to test AWS Deadline Cloud Python packages
Apache License 2.0
9 stars 13 forks source link

feat: Allow EC2InstanceWorker.stop() to not wait for worker to be stopped #135

Closed YutongLi291 closed 2 months ago

YutongLi291 commented 2 months ago

What was the problem/requirement? (What/Why)

In our tests, we will have tests that wish to verify that worker is in a STOPPING status, without waiting for the worker to be STOPPED.

What was the solution? (How)

Add an option for the Worker.stop() function to not wait for worker to be STOPPED, so that in tests we can verify that a worker is STOPPING

What is the impact of this change?

More flexibility in test code

How was this change tested?

hatch run fmt, hatch build

Was this change documented?

No

Is this a breaking change?

No

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud