From 93d467fbde012e07a4364b12168afbd826d890fb Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Fri, 1 Nov 2019 16:04:37 -0400 Subject: [PATCH] You were a spoilt child then with a record to plug --- pkging/costello/costello.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkging/costello/costello.go b/pkging/costello/costello.go index ad82578..ab107ad 100644 --- a/pkging/costello/costello.go +++ b/pkging/costello/costello.go @@ -61,10 +61,15 @@ func CmpFileInfo(t *testing.T, a os.FileInfo, b os.FileInfo) { r := require.New(t) r.Equal(a.IsDir(), b.IsDir()) - r.Equal(a.Mode().Perm(), b.Mode().Perm()) r.Equal(a.Name(), b.Name()) - // r.Equal(a.Size(), b.Size()) r.NotZero(b.ModTime()) + + if a.IsDir() { + r.True(b.Mode().IsDir(), b.Mode().String()) + return + } + + r.True(b.Mode().IsRegular(), b.Mode().String()) } func cmpHereInfo(t *testing.T, a here.Info, b here.Info) {