Commit c1f4e353 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

[357] test for negative timeout config

parent 6c9732dc
......@@ -151,6 +151,9 @@ TEST_F(AuthConfigTest, tcpRecvTimeoutConfig) {
configureAuthServer(server, Element::fromJSON(
"{ \"tcp_recv_timeout\": 2000 }"));
EXPECT_EQ(2000, dnss_.getTCPRecvTimeout());
EXPECT_THROW(configureAuthServer(server, Element::fromJSON(
"{ \"tcp_recv_timeout\": -123 }")),
AuthConfigError);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment