test: improve test to ensure ipv6 compatability (#5113)
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user