Skip to content

Commit 033efa2

Browse files
committed
Fix tls version in config tests
1 parent b35b2b7 commit 033efa2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/pkg/otel/translate/otelconfig_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"testing"
1111
"time"
1212

13+
"github.com/elastic/elastic-agent-libs/transport/tlscommon"
1314
"github.com/stretchr/testify/require"
1415

1516
"go.opentelemetry.io/collector/confmap"
@@ -307,8 +308,8 @@ func TestGetOtelConfig(t *testing.T) {
307308
"authenticator": "beatsauth/_agent-component/" + outputName,
308309
},
309310
"tls": map[string]any{
310-
"min_version": "1.1",
311-
"max_version": "1.3",
311+
"min_version": tlscommon.TLSVersionDefaultMin.Details().Version,
312+
"max_version": tlscommon.TLSVersionDefaultMax.Details().Version,
312313
},
313314
}
314315
}

0 commit comments

Comments
 (0)