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

@@ -103,7 +103,7 @@ struct BookDirs_test : public beast::unit_test::suite
run() override
{
using namespace jtx;
auto const sa = supported_amendments();
auto const sa = testable_amendments();
test_bookdir(sa - featurePermissionedDEX);
test_bookdir(sa);
}

View File

@@ -421,7 +421,7 @@ struct Directory_test : public beast::unit_test::suite
};
// fixPreviousTxnID is disabled.
Env env(*this, supported_amendments() - fixPreviousTxnID);
Env env(*this, testable_amendments() - fixPreviousTxnID);
env.fund(XRP(10000), alice, gw);
env.close();
env.trust(USD(1000), alice);

View File

@@ -78,7 +78,7 @@ class Invariants_test : public beast::unit_test::suite
Preclose const& preclose = {})
{
using namespace test::jtx;
FeatureBitset amendments = supported_amendments() |
FeatureBitset amendments = testable_amendments() |
featureInvariantsV1_1 | featureSingleAssetVault;
Env env{*this, amendments};

View File

@@ -420,7 +420,7 @@ public:
testBalanceHook(features);
};
using namespace jtx;
auto const sa = supported_amendments();
auto const sa = testable_amendments();
testAll(sa - featurePermissionedDEX);
testAll(sa);
}