Remove prefix dots from inspects in tests
Dots prepended to key in inspectField function Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
f5ebcfe1dc
commit
67058e388b
2 changed files with 3 additions and 3 deletions
|
@ -485,7 +485,7 @@ func (s *DockerRegistrySuite) TestDeleteImageByIDOnlyPulledByDigest(c *check.C)
|
|||
}
|
||||
// just in case...
|
||||
|
||||
imageID, err := inspectField(imageReference, ".Id")
|
||||
imageID, err := inspectField(imageReference, "Id")
|
||||
if err != nil {
|
||||
c.Fatalf("error inspecting image id: %v", err)
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ func (s *DockerSuite) TestRestartWithVolumes(c *check.C) {
|
|||
c.Errorf("expect 1 volume received %s", out)
|
||||
}
|
||||
|
||||
volumes, err := inspectField(cleanedContainerID, ".Volumes")
|
||||
volumes, err := inspectField(cleanedContainerID, "Volumes")
|
||||
c.Assert(err, check.IsNil)
|
||||
|
||||
runCmd = exec.Command(dockerBinary, "restart", cleanedContainerID)
|
||||
|
@ -130,7 +130,7 @@ func (s *DockerSuite) TestRestartWithVolumes(c *check.C) {
|
|||
c.Errorf("expect 1 volume after restart received %s", out)
|
||||
}
|
||||
|
||||
volumesAfterRestart, err := inspectField(cleanedContainerID, ".Volumes")
|
||||
volumesAfterRestart, err := inspectField(cleanedContainerID, "Volumes")
|
||||
c.Assert(err, check.IsNil)
|
||||
|
||||
if volumes != volumesAfterRestart {
|
||||
|
|
Loading…
Reference in a new issue