Skip to content

Commit 5a97537

Browse files
test no timeout config
1 parent 07edf84 commit 5a97537

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

setup_test.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ func TestParseConfig(t *testing.T) {
6767
exp{subnet: "0.0.0.0/0", timeout: 5 * time.Second},
6868
exp{subnet: "::/0", timeout: 5 * time.Second},
6969
)
70+
check(
71+
"no-timeout",
72+
`proxyprotocol 0.0.0.0/0 {
73+
timeout 0
74+
}`,
75+
exp{subnet: "0.0.0.0/0"},
76+
)
77+
check(
78+
"no-timeout",
79+
`proxyprotocol 0.0.0.0/0 {
80+
timeout none
81+
}`,
82+
exp{subnet: "0.0.0.0/0"},
83+
)
84+
7085
check(
7186
"block-single",
7287
`proxyprotocol 0.0.0.0/0 {

0 commit comments

Comments
 (0)