From e8643dd8cceda8be8dd5ad51d687b2cf0b7245d1 Mon Sep 17 00:00:00 2001 From: seelabs Date: Mon, 10 Aug 2015 15:04:14 -0400 Subject: [PATCH] Fix calling incorrect require function in tests --- src/ripple/app/tests/Offer.test.cpp | 2 +- src/ripple/ledger/tests/PaymentSandbox_test.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ()