Fix unit test compiler warnings

This commit is contained in:
Brad Chase
2017-08-14 16:44:18 -04:00
committed by Nik Bougalis
parent be1f734845
commit a02a469b20
5 changed files with 20 additions and 13 deletions

View File

@@ -278,10 +278,10 @@ class PaymentSandbox_test : public beast::unit_test::suite
STAmount hugeAmt (issue, STAmount::cMaxValue, STAmount::cMaxOffset - 1,
false, false, STAmount::unchecked{});
for (auto timeDelta : {-env.closed ()->info ().closeTimeResolution,
env.closed ()->info ().closeTimeResolution})
for (auto d : {-1, 1})
{
auto const closeTime = fix1141Time () + timeDelta;
auto const closeTime = fix1141Time () +
d * env.closed()->info().closeTimeResolution;
env.close (closeTime);
ApplyViewImpl av (&*env.current (), tapNONE);
PaymentSandbox pv (&av);