Skip to content

Commit

Permalink
INFOPLAT-1562 Fixes test
Browse files Browse the repository at this point in the history
  • Loading branch information
hendoxc committed Dec 23, 2024
1 parent 963f8c3 commit 0190cd3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/loop/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 0190cd3

Please sign in to comment.