This commit is contained in:
aler9
2021-06-03 23:41:39 +02:00
parent d07e93f245
commit 363871d658
4 changed files with 13 additions and 22 deletions

View File

@@ -487,6 +487,7 @@ func TestClientReadNoContentBase(t *testing.T) {
func TestClientReadAnyPort(t *testing.T) {
for _, ca := range []string{
"zero",
"zero_one",
"no",
} {
t.Run(ca, func(t *testing.T) {
@@ -556,8 +557,12 @@ func TestClientReadAnyPort(t *testing.T) {
}(),
ClientPorts: th.ClientPorts,
ServerPorts: func() *[2]int {
if ca == "zero" {
switch ca {
case "zero":
return &[2]int{0, 0}
case "zero_one":
return &[2]int{0, 1}
}
return nil
}(),