@@ -224,9 +224,6 @@ func TestLoggerEnabled(t *testing.T) {
224224 p1 := newFltrProcessor ("1" , true )
225225 p2WithDisabled := newFltrProcessor ("2" , false )
226226
227- emptyResource := resource .Empty ()
228- res := resource .NewSchemaless (attribute .String ("key" , "value" ))
229-
230227 testCases := []struct {
231228 name string
232229 logger * logger
@@ -247,12 +244,10 @@ func TestLoggerEnabled(t *testing.T) {
247244 logger : newLogger (NewLoggerProvider (
248245 WithProcessor (p0 ),
249246 WithProcessor (p1 ),
250- WithResource (res ),
251247 ), instrumentation.Scope {Name : "scope" }),
252248 ctx : context .Background (),
253249 expected : true ,
254250 expectedP0Params : []EnabledParameters {{
255- Resource : * res ,
256251 InstrumentationScope : instrumentation.Scope {Name : "scope" },
257252 }},
258253 expectedP1Params : nil ,
@@ -261,7 +256,6 @@ func TestLoggerEnabled(t *testing.T) {
261256 name : "WithDisabledProcessors" ,
262257 logger : newLogger (NewLoggerProvider (
263258 WithProcessor (p2WithDisabled ),
264- WithResource (emptyResource ),
265259 ), instrumentation.Scope {}),
266260 ctx : context .Background (),
267261 expected : false ,
@@ -272,7 +266,6 @@ func TestLoggerEnabled(t *testing.T) {
272266 logger : newLogger (NewLoggerProvider (
273267 WithProcessor (p2WithDisabled ),
274268 WithProcessor (p0 ),
275- WithResource (emptyResource ),
276269 ), instrumentation.Scope {}),
277270 ctx : context .Background (),
278271 expected : true ,
@@ -284,7 +277,6 @@ func TestLoggerEnabled(t *testing.T) {
284277 logger : newLogger (NewLoggerProvider (
285278 WithProcessor (p0 ),
286279 WithProcessor (p1 ),
287- WithResource (emptyResource ),
288280 ), instrumentation.Scope {}),
289281 ctx : nil ,
290282 expected : true ,
0 commit comments