mirror of
https://github.com/spf13/viper
synced 2024-12-22 11:37:02 +00:00
fix: lint violations
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
6c6bd7c0b5
commit
030b77a720
1 changed files with 2 additions and 4 deletions
|
@ -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()
|
||||
|
@ -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()
|
||||
})
|
||||
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue