@@ -67,8 +67,6 @@ class dest_tag
6767
6868class Check_test : public beast ::unit_test::suite
6969{
70- FeatureBitset const disallowIncoming{featureDisallowIncoming};
71-
7270 static uint256
7371 getCheckIndex (AccountID const & account, std::uint32_t uSequence)
7472 {
@@ -125,25 +123,6 @@ class Check_test : public beast::unit_test::suite
125123
126124 using namespace test ::jtx;
127125 Account const alice{" alice" };
128- {
129- // If the Checks amendment is not enabled, you should not be able
130- // to create, cash, or cancel checks.
131- Env env{*this , features - featureChecks};
132-
133- env.fund (XRP (1000 ), alice);
134- env.close ();
135-
136- uint256 const checkId{
137- getCheckIndex (env.master , env.seq (env.master ))};
138- env (check::create (env.master , alice, XRP (100 )), ter (temDISABLED));
139- env.close ();
140-
141- env (check::cash (alice, checkId, XRP (100 )), ter (temDISABLED));
142- env.close ();
143-
144- env (check::cancel (alice, checkId), ter (temDISABLED));
145- env.close ();
146- }
147126 {
148127 // If the Checks amendment is enabled all check-related
149128 // facilities should be available.
@@ -277,24 +256,12 @@ class Check_test : public beast::unit_test::suite
277256
278257 using namespace test ::jtx;
279258
280- // test flag doesn't set unless amendment enabled
281- {
282- Env env{*this , features - disallowIncoming};
283- Account const alice{" alice" };
284- env.fund (XRP (10000 ), alice);
285- env (fset (alice, asfDisallowIncomingCheck));
286- env.close ();
287- auto const sle = env.le (alice);
288- uint32_t flags = sle->getFlags ();
289- BEAST_EXPECT (!(flags & lsfDisallowIncomingCheck));
290- }
291-
292259 Account const gw{" gateway" };
293260 Account const alice{" alice" };
294261 Account const bob{" bob" };
295262 IOU const USD{gw[" USD" ]};
296263
297- Env env{*this , features | disallowIncoming };
264+ Env env{*this , features};
298265
299266 STAmount const startBalance{XRP (1000 ).value ()};
300267 env.fund (startBalance, gw, alice, bob);
@@ -2613,7 +2580,6 @@ class Check_test : public beast::unit_test::suite
26132580 {
26142581 using namespace test ::jtx;
26152582 auto const sa = testable_amendments ();
2616- testWithFeats (sa - disallowIncoming);
26172583 testWithFeats (sa);
26182584 testTrustLineCreation (sa);
26192585 }
0 commit comments