mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 00:30:30 +02:00
fix tests
This commit is contained in:
@@ -66,6 +66,7 @@ func TestSnapshotFSFileChange(t *testing.T) {
|
||||
}
|
||||
for _, path := range util.ParentDirectoriesWithoutLeadingSlash(batPath) {
|
||||
if path == "/" {
|
||||
snapshotFiles["/"] = ""
|
||||
continue
|
||||
}
|
||||
snapshotFiles[path+"/"] = ""
|
||||
@@ -164,6 +165,7 @@ func TestSnapshotFSChangePermissions(t *testing.T) {
|
||||
}
|
||||
for _, path := range util.ParentDirectoriesWithoutLeadingSlash(batPathWithoutLeadingSlash) {
|
||||
if path == "/" {
|
||||
snapshotFiles["/"] = ""
|
||||
continue
|
||||
}
|
||||
snapshotFiles[path+"/"] = ""
|
||||
|
||||
Reference in New Issue
Block a user