diff options
Diffstat (limited to 'hugofs/nosymlink_test.go')
-rw-r--r-- | hugofs/nosymlink_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugofs/nosymlink_test.go b/hugofs/nosymlink_test.go index c938da006..f541fc0a7 100644 --- a/hugofs/nosymlink_test.go +++ b/hugofs/nosymlink_test.go @@ -68,7 +68,7 @@ func TestNoSymlinkFs(t *testing.T) { for _, bfs := range []afero.Fs{NewBaseFileDecorator(Os), Os} { for _, allowFiles := range []bool{false, true} { - logger.WarnCounter.Reset() + logger.LogCounters().WarnCounter.Reset() fs := NewNoSymlinkFs(bfs, logger, allowFiles) ls := fs.(afero.Lstater) symlinkedDir := filepath.Join(workDir, "symlinkdedir") @@ -139,7 +139,7 @@ func TestNoSymlinkFs(t *testing.T) { _, err = f.Readdir(-1) c.Assert(err, qt.IsNil) f.Close() - c.Assert(logger.WarnCounter.Count(), qt.Equals, uint64(1)) + c.Assert(logger.LogCounters().WarnCounter.Count(), qt.Equals, uint64(1)) } } |