Hi,
Im just reading through openZeppelin-test-helpers on git:
So going through openzeppelin-test-helpers/src/ balance.js
I read the test in OpenZeppelin/ openzeppelin-test-helpers
So I found the test:
it('returns correct deltas after get() checkpoint', async function () {
const tracker = await balance.tracker(receiver);
await send.ether(sender, receiver, ether('1'));
await tracker.get();
await send.ether(sender, receiver, ether('1'));
expect(await tracker.delta()).to.be.bignumber.equal(ether('1'));
});
It seems the first await send.ether(sender, receiver, ether('1'));
is not needed and my test also fits without it.
So is there any reason for this, or it it just something useless that does not disturb the logic?
So if this line does not take any effect, the next it-test is identical and does not seem to bring up a new test scenario
So the only reason I may think of is a test of concurrency or parallelism, e.g. that the commands are completet right in sequence. So as it is a test for a library it may makes sense. But I don't know
Hope this was the right place to ask,
Stefan