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

test: wait on the dialog to close #1624

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Conversation

jelly
Copy link
Member

@jelly jelly commented Mar 15, 2024

podman inspect seems to fail randomly when we just created a container, likely because it is still "setting up". As we try to work around the issue where we click too fast on the "create container" button while the dialog is still tearing down, we aren't too interested in much of podman inspect more in if the container is running.

@jelly jelly requested a review from martinpitt March 15, 2024 14:00
@martinpitt
Copy link
Member

TBH I don't understand the commit message. How is that related to a dialog and tearing down? In that case we should wait for the dialog to go away -- that's sorely missing and should be done in any case. Then the container should be guaranteed to run.

@jelly
Copy link
Member Author

jelly commented Mar 15, 2024

TBH I don't understand the commit message. How is that related to a dialog and tearing down? In that case we should wait for the dialog to go away -- that's sorely missing and should be done in any case. Then the container should be guaranteed to run.

Right, that is true. I think it is also a good thing to check if the container is actually running

@martinpitt martinpitt changed the title test: don't call podman inspect test: wait on the dialog to close Mar 18, 2024
test/check-application Show resolved Hide resolved
Wait until the dialog is closed before opening it again, this allows us
to remove the hacky `podman inspect` workaround to wait till the
container is running intended to achieve the same as waiting for the
dialog to close.
@martinpitt

This comment was marked as outdated.

@martinpitt martinpitt merged commit b13ee47 into cockpit-project:main Mar 18, 2024
28 of 30 checks passed
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