mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-27 17:10:46 +00:00
feat: Use C++ 23 standard (#7431)
This commit is contained in:
@@ -401,7 +401,7 @@ public:
|
||||
}),
|
||||
std::make_unique<CaptureLogs>(&messages)};
|
||||
});
|
||||
BEAST_EXPECT(messages.find("Missing 'ip' in [port_rpc]") != std::string::npos);
|
||||
BEAST_EXPECT(messages.contains("Missing 'ip' in [port_rpc]"));
|
||||
|
||||
except([&] {
|
||||
Env const env{
|
||||
@@ -413,7 +413,7 @@ public:
|
||||
}),
|
||||
std::make_unique<CaptureLogs>(&messages)};
|
||||
});
|
||||
BEAST_EXPECT(messages.find("Missing 'port' in [port_rpc]") != std::string::npos);
|
||||
BEAST_EXPECT(messages.contains("Missing 'port' in [port_rpc]"));
|
||||
|
||||
except([&] {
|
||||
Env const env{
|
||||
@@ -426,8 +426,7 @@ public:
|
||||
}),
|
||||
std::make_unique<CaptureLogs>(&messages)};
|
||||
});
|
||||
BEAST_EXPECT(
|
||||
messages.find("Invalid value '0' for key 'port' in [port_rpc]") == std::string::npos);
|
||||
BEAST_EXPECT(!messages.contains("Invalid value '0' for key 'port' in [port_rpc]"));
|
||||
|
||||
except([&] {
|
||||
Env const env{
|
||||
@@ -438,8 +437,7 @@ public:
|
||||
}),
|
||||
std::make_unique<CaptureLogs>(&messages)};
|
||||
});
|
||||
BEAST_EXPECT(
|
||||
messages.find("Invalid value '0' for key 'port' in [server]") != std::string::npos);
|
||||
BEAST_EXPECT(messages.contains("Invalid value '0' for key 'port' in [server]"));
|
||||
|
||||
except([&] {
|
||||
Env const env{
|
||||
@@ -453,7 +451,7 @@ public:
|
||||
}),
|
||||
std::make_unique<CaptureLogs>(&messages)};
|
||||
});
|
||||
BEAST_EXPECT(messages.find("Missing 'protocol' in [port_rpc]") != std::string::npos);
|
||||
BEAST_EXPECT(messages.contains("Missing 'protocol' in [port_rpc]"));
|
||||
|
||||
except([&] // this creates a standard test config without the server
|
||||
// section
|
||||
@@ -482,7 +480,7 @@ public:
|
||||
}),
|
||||
std::make_unique<CaptureLogs>(&messages)};
|
||||
});
|
||||
BEAST_EXPECT(messages.find("Required section [server] is missing") != std::string::npos);
|
||||
BEAST_EXPECT(messages.contains("Required section [server] is missing"));
|
||||
|
||||
except([&] // this creates a standard test config without some of the
|
||||
// port sections
|
||||
@@ -503,7 +501,7 @@ public:
|
||||
}),
|
||||
std::make_unique<CaptureLogs>(&messages)};
|
||||
});
|
||||
BEAST_EXPECT(messages.find("Missing section: [port_peer]") != std::string::npos);
|
||||
BEAST_EXPECT(messages.contains("Missing section: [port_peer]"));
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user