diff --git a/src/test/app/Invariants_test.cpp b/src/test/app/Invariants_test.cpp index 20e911c211..f96d13463e 100644 --- a/src/test/app/Invariants_test.cpp +++ b/src/test/app/Invariants_test.cpp @@ -129,6 +129,10 @@ class Invariants_test : public beast::unit_test::suite beast::Journal const jlog{sink}; ApplyContext ac{env.app(), ov, tx, tesSUCCESS, env.current()->fees().base, tapNONE, jlog}; + // Invariants normally run in the Transaction's "apply" (operator()) context, and can access + // global Rules. (Not dependent on amendments.) + CurrentTransactionRulesGuard const rg(ov.rules()); + BEAST_EXPECT(precheck(A1, A2, ac)); // invoke check twice to cover tec and tef cases