diff --git a/zapcore/level_test.go b/zapcore/level_test.go index ab10bb630..454332258 100644 --- a/zapcore/level_test.go +++ b/zapcore/level_test.go @@ -239,7 +239,10 @@ func TestLevelOf(t *testing.T) { } for _, tt := range tests { + tt := tt t.Run(tt.desc, func(t *testing.T) { + t.Parallel() + assert.Equal(t, tt.want, LevelOf(tt.give), "Reported level did not match.") }) } diff --git a/zapcore/sampler_test.go b/zapcore/sampler_test.go index 68b526884..194427a65 100644 --- a/zapcore/sampler_test.go +++ b/zapcore/sampler_test.go @@ -91,7 +91,10 @@ func TestSampler(t *testing.T) { func TestLevelOfSampler(t *testing.T) { levels := []Level{DebugLevel, InfoLevel, WarnLevel, ErrorLevel, DPanicLevel, PanicLevel, FatalLevel} for _, lvl := range levels { + lvl := lvl t.Run(lvl.String(), func(t *testing.T) { + t.Parallel() + sampler, _ := fakeSampler(lvl, time.Minute, 2, 3) assert.Equal(t, lvl, LevelOf(sampler), "Sampler level did not match.") }) diff --git a/zapcore/tee_test.go b/zapcore/tee_test.go index d6999b20a..b2b9c9dc0 100644 --- a/zapcore/tee_test.go +++ b/zapcore/tee_test.go @@ -77,7 +77,10 @@ func TestLevelOfTee(t *testing.T) { } for _, tt := range tests { + tt := tt t.Run(tt.desc, func(t *testing.T) { + t.Parallel() + core := NewTee(tt.give...) assert.Equal(t, tt.want, LevelOf(core), "Level of Tee core did not match.") })