test: improve test to ensure ipv6 compatability (#5113)

This commit is contained in:
Damian Debkowski authored and GitHub committed 2024-09-19 08:55:27 -07:00
1 parent 61c1544446
commit 9576ed40dc
12 files changed
+116 -45

No files matched your search

@@ -26,10 +26,10 @@ func Test_GetOpts(t *testing.T) {
assert.Equal(t, opts, testOpts)
})
t.Run("WithUrl", func(t *testing.T) {
opts, err := getOpts(WithUrl(ctx, "http://localhost:9200"))
opts, err := getOpts(WithUrl(ctx, "http://[::1]:9200"))
require.NoError(t, err)
testOpts := getDefaultOptions()
testOpts.withUrl = "http://localhost:9200"
testOpts.withUrl = "http://[::1]:9200"
assert.Equal(t, opts, testOpts)
})
t.Run("WithLogger", func(t *testing.T) {