mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-25 08:00:22 +00:00
feat: Use C++ 23 standard (#7431)
This commit is contained in:
@@ -479,8 +479,7 @@ public:
|
||||
}
|
||||
catch (std::runtime_error const& e)
|
||||
{
|
||||
BEAST_EXPECT(
|
||||
std::string(e.what()).find("Incomplete TLS configuration") != std::string::npos);
|
||||
BEAST_EXPECT(std::string(e.what()).contains("Incomplete TLS configuration"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -505,8 +504,7 @@ public:
|
||||
}
|
||||
catch (std::runtime_error const& e)
|
||||
{
|
||||
BEAST_EXPECT(
|
||||
std::string(e.what()).find("Incomplete TLS configuration") != std::string::npos);
|
||||
BEAST_EXPECT(std::string(e.what()).contains("Incomplete TLS configuration"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -533,8 +531,8 @@ public:
|
||||
catch (std::runtime_error const& e)
|
||||
{
|
||||
BEAST_EXPECT(
|
||||
std::string(e.what()).find(
|
||||
"ssl_client_ca requires both ssl_cert and ssl_key") != std::string::npos);
|
||||
std::string(e.what()).contains(
|
||||
"ssl_client_ca requires both ssl_cert and ssl_key"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -556,9 +554,7 @@ public:
|
||||
{
|
||||
// This should fail with "Incomplete TLS configuration" first
|
||||
// because ssl_cert is specified without ssl_key
|
||||
BEAST_EXPECT(
|
||||
std::string(e.what()).find("Incomplete TLS configuration") !=
|
||||
std::string::npos);
|
||||
BEAST_EXPECT(std::string(e.what()).contains("Incomplete TLS configuration"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -580,9 +576,7 @@ public:
|
||||
{
|
||||
// This should fail with "Incomplete TLS configuration" first
|
||||
// because ssl_key is specified without ssl_cert
|
||||
BEAST_EXPECT(
|
||||
std::string(e.what()).find("Incomplete TLS configuration") !=
|
||||
std::string::npos);
|
||||
BEAST_EXPECT(std::string(e.what()).contains("Incomplete TLS configuration"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -610,8 +604,8 @@ public:
|
||||
catch (std::runtime_error const& e)
|
||||
{
|
||||
BEAST_EXPECT(
|
||||
std::string(e.what()).find(
|
||||
"ssl_cert_chain requires both ssl_cert and ssl_key") != std::string::npos);
|
||||
std::string(e.what()).contains(
|
||||
"ssl_cert_chain requires both ssl_cert and ssl_key"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -633,9 +627,7 @@ public:
|
||||
{
|
||||
// This should fail with "Incomplete TLS configuration" first
|
||||
// because ssl_cert is specified without ssl_key
|
||||
BEAST_EXPECT(
|
||||
std::string(e.what()).find("Incomplete TLS configuration") !=
|
||||
std::string::npos);
|
||||
BEAST_EXPECT(std::string(e.what()).contains("Incomplete TLS configuration"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user