fix(enos): Remove brackets from standalone IPv6 addresses (#5739)

This commit is contained in:
Hugo authored and GitHub committed 2025-05-14 18:00:34 +01:00
1 parent a65d5d8573
commit 08bd39f9fa
3 files changed
+13 -5

No files matched your search

@@ -171,10 +171,8 @@ func TestCliCreateAwsDynamicHostCatalogWithHostSet(t *testing.T) {
require.Greater(t, len(s.Connections), 0)
var hostIp string
switch c.IpVersion {
case "4":
case "4", "6", "dual":
hostIp = s.Connections[0].EndpointTcpAddress
case "6", "dual":
hostIp = fmt.Sprintf("[%s]", s.Connections[0].EndpointTcpAddress)
default:
require.Fail(t, "unknown ip version", c.IpVersion)
}