Skip to content

Commit ed2450b

Browse files
committed
Remove unnecessary code
1 parent be5cba7 commit ed2450b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

exporter/awsemfexporter/emf_exporter_test.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -434,17 +434,6 @@ func TestNewEmfExporterWithoutConfig(t *testing.T) {
434434
factory := NewFactory()
435435
expCfg := factory.CreateDefaultConfig().(*Config)
436436
settings := exportertest.NewNopSettings(metadata.Type)
437-
t.Setenv("AWS_STS_REGIONAL_ENDPOINTS", "fake")
438-
t.Setenv("AWS_ACCESS_KEY_ID", "invalid")
439-
t.Setenv("AWS_SECRET_ACCESS_KEY", "invalid")
440-
t.Setenv("AWS_SESSION_TOKEN", "invalid")
441-
442-
// 모든 리전 소스 차단
443-
t.Setenv("AWS_REGION", "")
444-
t.Setenv("AWS_DEFAULT_REGION", "")
445-
t.Setenv("AWS_EC2_METADATA_DISABLED", "true")
446-
t.Setenv("AWS_CONFIG_FILE", "/dev/null")
447-
t.Setenv("AWS_SHARED_CREDENTIALS_FILE", "/dev/null")
448437

449438
ctx := context.Background()
450439
exp, err := newEmfExporter(ctx, expCfg, settings)

0 commit comments

Comments
 (0)