test: Run unit tests regardless of 'Supported' amendment status (#5537)

This commit is contained in:
Vlad
2025-07-16 12:47:54 +01:00
committed by GitHub
parent c9135a63cd
commit 8bfaa7fe0a
66 changed files with 167 additions and 165 deletions

View File

@@ -265,7 +265,7 @@ public:
{
using namespace jtx;
Env env{*this, supported_amendments() | fixMasterKeyAsRegularKey};
Env env{*this, testable_amendments() | fixMasterKeyAsRegularKey};
Account const alice("alice", KeyType::ed25519);
Account const bob("bob", KeyType::secp256k1);
Account const carol("carol");
@@ -776,7 +776,7 @@ public:
{
testcase("Env features");
using namespace jtx;
auto const supported = supported_amendments();
auto const supported = testable_amendments();
// this finds a feature that is not in
// the supported amendments list and tests that it can be
@@ -827,7 +827,7 @@ public:
}
auto const missingSomeFeatures =
supported_amendments() - featureMultiSignReserve - featureFlow;
testable_amendments() - featureMultiSignReserve - featureFlow;
BEAST_EXPECT(missingSomeFeatures.count() == (supported.count() - 2));
{
// a Env supported_features_except is missing *only* those features
@@ -887,7 +887,7 @@ public:
// add a feature that is NOT in the supported amendments list
// along with all supported amendments
// the unsupported features should be enabled
Env env{*this, supported_amendments().set(*neverSupportedFeat)};
Env env{*this, testable_amendments().set(*neverSupportedFeat)};
// this app will have all supported amendments and then the
// one additional never supported feature flag