mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #41070 from kolyshkin/test-fix
int/build/TestBuildWithEmptyLayers: prevent panic
This commit is contained in:
commit
a2282777c6
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ RUN cat somefile`
|
||||||
|
|
||||||
imageIDs, err := getImageIDsFromBuild(out.Bytes())
|
imageIDs, err := getImageIDsFromBuild(out.Bytes())
|
||||||
assert.NilError(t, err)
|
assert.NilError(t, err)
|
||||||
assert.Check(t, is.Equal(3, len(imageIDs)))
|
assert.Assert(t, is.Equal(3, len(imageIDs)))
|
||||||
|
|
||||||
image, _, err := apiclient.ImageInspectWithRaw(context.Background(), imageIDs[2])
|
image, _, err := apiclient.ImageInspectWithRaw(context.Background(), imageIDs[2])
|
||||||
assert.NilError(t, err)
|
assert.NilError(t, err)
|
||||||
|
|
Loading…
Add table
Reference in a new issue