From 0190cd3538649be0cf7545471eca9d14f633c476 Mon Sep 17 00:00:00 2001 From: hendoxc Date: Mon, 23 Dec 2024 11:14:42 -0700 Subject: [PATCH] INFOPLAT-1562 Fixes test --- pkg/loop/config_test.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/loop/config_test.go b/pkg/loop/config_test.go index f57eff666..41dc1088a 100644 --- a/pkg/loop/config_test.go +++ b/pkg/loop/config_test.go @@ -165,12 +165,6 @@ func TestEnvConfig_parse(t *testing.T) { if config.TelemetryTraceSampleRatio != tc.expectedTelemetryTraceSampleRatio { t.Errorf("Expected telemetryTraceSampleRatio %f, got %f", tc.expectedTelemetryTraceSampleRatio, config.TelemetryTraceSampleRatio) } - if !maps.Equal(config.TelemetryAuthHeaders, tc.expectedTelemetryAuthHeaders) { - t.Errorf("Expected telemetryAuthHeaders %v, got %v", tc.expectedTelemetryAuthHeaders, config.TelemetryAuthHeaders) - } - if config.TelemetryAuthPubKeyHex != tc.expectedTelemetryAuthPubKeyHex { - t.Errorf("Expected telemetryAuthPubKeyHex %s, got %s", tc.expectedTelemetryAuthPubKeyHex, config.TelemetryAuthPubKeyHex) - } if config.TelemetryEmitterBatchProcessor != tc.expectedTelemetryEmitterBatchProcessor { t.Errorf("Expected telemetryEmitterBatchProcessor %v, got %v", tc.expectedTelemetryEmitterBatchProcessor, config.TelemetryEmitterBatchProcessor) } @@ -264,8 +258,6 @@ func TestEnvConfig_AsCmdEnv(t *testing.T) { assert.Equal(t, "0.42", got[envTelemetryTraceSampleRatio]) assert.Equal(t, "bar", got[envTelemetryAttribute+"foo"]) assert.Equal(t, "42", got[envTelemetryAttribute+"baz"]) - assert.Equal(t, "header-value", got[envTelemetryAuthHeader+"header-key"]) - assert.Equal(t, "pub-key-hex", got[envTelemetryAuthPubKeyHex]) assert.Equal(t, "true", got[envTelemetryEmitterBatchProcessor]) assert.Equal(t, "1s", got[envTelemetryEmitterExportTimeout]) assert.Equal(t, "2s", got[envTelemetryEmitterExportInterval])