fix commut

This commit is contained in:
Tejal Desai 2020-02-06 15:37:47 -08:00
parent 674f5bda5d
commit 8b69a13641
2 changed files with 6 additions and 6 deletions

View File

@ -322,7 +322,7 @@ func TestSnasphotPreservesFileOrder(t *testing.T) {
filesInTars := [][]string{}
for i := 0; i<= 2; i++ {
for i := 0; i <= 2; i++ {
testDir, snapshotter, cleanup, err := setUpTest()
testDirWithoutLeadingSlash := strings.TrimLeft(testDir, "/")
defer cleanup()
@ -366,7 +366,7 @@ func TestSnasphotPreservesFileOrder(t *testing.T) {
}
// Check contents of all snapshots, make sure files appear in consistent order
for i := 1; i<len(filesInTars); i++ {
for i := 1; i < len(filesInTars); i++ {
testutil.CheckErrorAndDeepEqual(t, false, nil, filesInTars[0], filesInTars[i])
}
}

View File

@ -84,10 +84,10 @@ func (t *Tar) AddFileToTar(p string) error {
hdr.Name = p
}
// rootfs may not have been extracted when using cache, preventing uname/gname from resolving
// this makes this layer unnecessarily differ from a cached layer which does contain this information
hdr.Uname = ""
hdr.Gname = ""
// rootfs may not have been extracted when using cache, preventing uname/gname from resolving
// this makes this layer unnecessarily differ from a cached layer which does contain this information
hdr.Uname = ""
hdr.Gname = ""
hardlink, linkDst := t.checkHardlink(p, i)
if hardlink {