Skip to content

Use graceful shutdown with retry for web scenario tests - #5130

Merged
lbussell merged 1 commit into
dotnet:nightlyfrom
lbussell:issue-5127
Jan 24, 2024
Merged

lbussell merged 1 commit into
dotnet:nightlyfrom
lbussell:issue-5127

Conversation

@lbussell

Copy link
Copy Markdown
Member

Attempting to fix #5127

@lbussell
lbussell marked this pull request as ready for review January 23, 2024 23:59
@lbussell
lbussell requested a review from a team as a code owner January 23, 2024 23:59
}
finally
{
DockerHelper.StopContainer(containerName);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any reason to not embed this call inside DeleteContainer? Anyone calling DeleteContainer would want this wouldn't they?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I just tested this out and I made the incorrect assumption that running docker stop on a container that's already stopped would fail (e.g. a container that just outputs to the console and then exits, like our non-web tests). It actually doesn't fail. I can follow up on this.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants