diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-10-21 12:17:48 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-10-22 10:09:29 +0300 |
commit | fdfa4a5fe62232f65f1dd8d6fe0c500374228788 (patch) | |
tree | b804e91506a7f3c58690c6fd774b28f95184d5dc /hugofs/nosymlink_test.go | |
parent | 8cbe2bbfad6aa4de267921e24e166d4addf47040 (diff) |
Allow getJSON errors to be ignored
This change is mostly motivated to get a more stable CI build (we're building the Hugo site there, with Instagram and Twitter shortcodes sometimes failing).
Fixes #7866
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)) } } |