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

+7 -1
View File
@@ -23,11 +23,17 @@ func TestConfigSetAddress(t *testing.T) {
tests := []test{
{
"bare",
"ipv4",
"http://127.0.0.1:9200",
"http://127.0.0.1:9200",
"",
},
{
"ipv6",
"http://[::1]:9200",
"http://[::1]:9200",
"",
},
{
"bare with version",
"http://127.0.0.1:9200/v1",
+3
View File
@@ -169,6 +169,9 @@ func testSessionAuth(t *testing.T) *targets.SessionAuthorizationData {
{
Address: "localhost:9202",
},
{
Address: "[::1]:9201",
},
},
}