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:
parent
0de3a5f11d
commit
bc4573c447
1 changed files with 2 additions and 1 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue