diff --git a/src/ripple/app/tests/Offer.test.cpp b/src/ripple/app/tests/Offer.test.cpp index 4f18f0938b..eab5cb00aa 100644 --- a/src/ripple/app/tests/Offer.test.cpp +++ b/src/ripple/app/tests/Offer.test.cpp @@ -100,7 +100,7 @@ public: env (pay ("alice", "bob", USD (100)), json (paths.json ()), sendmax (BTC (1000)), txflags (tfPartialPayment)); - require (balance ("bob", USD (100))); + env.require (balance ("bob", USD (100))); if (enableFix) expect (!isOffer (env, "carol", BTC (1), USD (100)) && isOffer (env, "carol", BTC (49), XRP (49))); diff --git a/src/ripple/ledger/tests/PaymentSandbox_test.cpp b/src/ripple/ledger/tests/PaymentSandbox_test.cpp index 6e76e6a147..ec77e2c314 100644 --- a/src/ripple/ledger/tests/PaymentSandbox_test.cpp +++ b/src/ripple/ledger/tests/PaymentSandbox_test.cpp @@ -88,8 +88,8 @@ class PaymentSandbox_test : public beast::unit_test::suite json (paths.json ()), txflags (tfNoRippleDirect | tfPartialPayment)); - require (balance ("rcv", USD_gw1 (0))); - require (balance ("rcv", USD_gw2 (2))); + env.require (balance ("rcv", USD_gw1 (0))); + env.require (balance ("rcv", USD_gw2 (2))); } void testSubtractCredits ()