1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

Disable empty string SockAddr throw test

The code intentionally no longer throws and handles this as a special
case (resulting in an empty SockAddr).
This commit is contained in:
Jason Rhinelander 2020-05-17 00:27:19 -03:00
parent 0de3a5f11d
commit bc4573c447

View file

@ -58,7 +58,8 @@ TEST_CASE("SockAddr fromString", "[SockAddr]")
CHECK_THROWS_WITH(
llarp::SockAddr("0xFF.0xFF.0xFF.0xFF"), "0xFF.0xFF.0xFF.0xFF contains non-numeric values");
CHECK_THROWS_WITH(llarp::SockAddr(""), "cannot construct IPv4 from empty string");
// This *is* supported now; it gives you an empty address (same as default constructed).
//CHECK_THROWS_WITH(llarp::SockAddr(""), "cannot construct IPv4 from empty string");
CHECK_THROWS_WITH(llarp::SockAddr(" "), " is not a valid IPv4 address");