Skip to content

Commit

Permalink
XXX test a theory
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Jul 3, 2023
1 parent e0bcadc commit 67b1411
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -1236,15 +1236,18 @@ class TestApplication(testlib.MachineCase):
self.assertEqual(self.getContainerAttr(IMG_BUSYBOX, "CPU"), "n/a")
self.assertEqual(memory, "n/a")

# Restart the container
# Restart the container; there is no steady-state difference in the UI (we don't show
# the PID or
old_pid = self.execute(auth, "podman inspect --format '{{.State.Pid}}' swamped-crate")
# testlib.sit()
self.performContainerAction(IMG_BUSYBOX, "Force restart")
b.wait(lambda: old_pid != self.execute(auth,
"podman inspect --format '{{.State.Pid}}' swamped-crate".strip()))
self.waitContainer(container_sha, auth, name='swamped-crate', image=IMG_BUSYBOX, state='Running')
# testlib.sit()

self.filter_containers('all')
b.wait_visible("#containers-containers")
import time
time.sleep(5)

self.waitContainerRow(IMG_BUSYBOX)
if not auth:
Expand Down

0 comments on commit 67b1411

Please sign in to comment.