mirror of
https://github.com/containers/podman.git
synced 2025-06-28 05:58:50 +08:00
Merge pull request #6473 from mheon/fix_inspect_segfault
Fix a segfault in `podman inspect -l` w/ no containers
This commit is contained in:
@ -171,4 +171,12 @@ var _ = Describe("Podman inspect", func() {
|
||||
Expect(imageData[0].HealthCheck.Interval).To(BeNumerically("==", 60000000000))
|
||||
Expect(imageData[0].HealthCheck.Test).To(Equal([]string{"CMD-SHELL", "curl -f http://localhost/ || exit 1"}))
|
||||
})
|
||||
|
||||
It("podman inspect --latest with no container fails", func() {
|
||||
SkipIfRemote()
|
||||
|
||||
session := podmanTest.Podman([]string{"inspect", "--latest"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Not(Equal(0)))
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user