mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use features instead of ApplyFlags:
tapENABLE_TESTING is removed from checks, and feature enablement is the sole method for activating features. Unit tests are updated to enable required features in the construction of the Env. Tickets are put on a feature switch instead of a build macro.
This commit is contained in:
@@ -66,8 +66,7 @@ struct Regression_test : public beast::unit_test::suite
|
||||
OpenView accum(&*next);
|
||||
|
||||
auto const result = ripple::apply(env.app(),
|
||||
accum, *jt.stx, tapENABLE_TESTING,
|
||||
env.journal);
|
||||
accum, *jt.stx, tapNONE, env.journal);
|
||||
expect(result.first == tesSUCCESS);
|
||||
expect(result.second);
|
||||
|
||||
@@ -93,8 +92,7 @@ struct Regression_test : public beast::unit_test::suite
|
||||
OpenView accum(&*next);
|
||||
|
||||
auto const result = ripple::apply(env.app(),
|
||||
accum, *jt.stx, tapENABLE_TESTING,
|
||||
env.journal);
|
||||
accum, *jt.stx, tapNONE, env.journal);
|
||||
expect(result.first == tecINSUFF_FEE);
|
||||
expect(result.second);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user