Skip to content

Commit

Permalink
fix: lint violations
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <[email protected]>
  • Loading branch information
sagikazarmark committed Feb 15, 2024
1 parent 6c6bd7c commit 030b77a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions viper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2427,7 +2427,7 @@ func TestWatchFile(t *testing.T) {
wg := sync.WaitGroup{}
wg.Add(1)
var wgDoneOnce sync.Once // OnConfigChange is called twice on Windows
v.OnConfigChange(func(in fsnotify.Event) {
v.OnConfigChange(func(_ fsnotify.Event) {
t.Logf("config file changed")
wgDoneOnce.Do(func() {
wg.Done()
Expand All @@ -2450,7 +2450,7 @@ func TestWatchFile(t *testing.T) {
v, watchDir, _ := newViperWithSymlinkedConfigFile(t)
wg := sync.WaitGroup{}
v.WatchConfig()
v.OnConfigChange(func(in fsnotify.Event) {
v.OnConfigChange(func(_ fsnotify.Event) {
t.Logf("config file changed")
wg.Done()
})
Expand Down Expand Up @@ -2689,8 +2689,6 @@ func BenchmarkGetBoolFromMap(b *testing.B) {
}

// Skip some tests on Windows that kept failing when Windows was added to the CI as a target.
//
//nolint:gocritic // sloppyTestFuncName
func skipWindows(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("Skip test on Windows")
Expand Down

0 comments on commit 030b77a

Please sign in to comment.