diff --git a/pkg/snapshot/snapshot_test.go b/pkg/snapshot/snapshot_test.go index 4cf698c52..67b70b9c5 100644 --- a/pkg/snapshot/snapshot_test.go +++ b/pkg/snapshot/snapshot_test.go @@ -380,6 +380,9 @@ func TestSnapshotOmitsUnameGname(t *testing.T) { } tarPath, err := snapshotter.TakeSnapshotFS() + if err != nil { + t.Fatal(err) + } f, err := os.Open(tarPath) if err != nil {