Skip to content

Commit

Permalink
test no timeout config
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Nov 6, 2018
1 parent 07edf84 commit 5a97537
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,21 @@ func TestParseConfig(t *testing.T) {
exp{subnet: "0.0.0.0/0", timeout: 5 * time.Second},
exp{subnet: "::/0", timeout: 5 * time.Second},
)
check(
"no-timeout",
`proxyprotocol 0.0.0.0/0 {
timeout 0
}`,
exp{subnet: "0.0.0.0/0"},
)
check(
"no-timeout",
`proxyprotocol 0.0.0.0/0 {
timeout none
}`,
exp{subnet: "0.0.0.0/0"},
)

check(
"block-single",
`proxyprotocol 0.0.0.0/0 {
Expand Down

0 comments on commit 5a97537

Please sign in to comment.