mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix calling incorrect require function in tests
This commit is contained in:
@@ -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)));
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user