From c576771497694588d36be907d50a5218d4e38c34 Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Sat, 6 Jun 2020 11:37:35 -0700 Subject: [PATCH] fix tests --- pkg/snapshot/snapshot_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/snapshot/snapshot_test.go b/pkg/snapshot/snapshot_test.go index 1b03bbd4f..abe211038 100644 --- a/pkg/snapshot/snapshot_test.go +++ b/pkg/snapshot/snapshot_test.go @@ -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+"/"] = ""