diff --git a/packages/server/src/wallet/adjudicator-watcher/__chain-test__/adjudicator-watcher.test.ts b/packages/server/src/wallet/adjudicator-watcher/__chain-test__/adjudicator-watcher.test.ts index ee5bc3ca8..b66194e4a 100644 --- a/packages/server/src/wallet/adjudicator-watcher/__chain-test__/adjudicator-watcher.test.ts +++ b/packages/server/src/wallet/adjudicator-watcher/__chain-test__/adjudicator-watcher.test.ts @@ -3,7 +3,7 @@ import { bigNumberify } from 'ethers/utils'; import { channelID } from 'fmg-core/lib/channel'; import { listen } from '..'; import AllocatorChannel from '../../models/allocatorChannel'; -import { channel, depositContract } from './utils'; +import { channel, depositIntoContract } from './utils'; jest.setTimeout(60000); const channelId = channelID(channel); @@ -27,13 +27,13 @@ describe('adjudicator listener', () => { const eventCallback = async eventType => { const postEventHoldings = await getHoldings(); - const eventDeposit = bigNumberify(postEventHoldings).sub(bigNumberify(preEventHoldings)); - expect(eventDeposit.toNumber()).toBeGreaterThanOrEqual(5); + const depositedAmount = bigNumberify(postEventHoldings).sub(bigNumberify(preEventHoldings)); + expect(depositedAmount.toNumber()).toBeGreaterThanOrEqual(5); done(); }; removeListeners = await listen(eventCallback); - await depositContract(provider, channelId); + await depositIntoContract(provider, channelId); }); }); diff --git a/packages/server/src/wallet/adjudicator-watcher/__chain-test__/utils.ts b/packages/server/src/wallet/adjudicator-watcher/__chain-test__/utils.ts index 687ba6842..ff0a3db9d 100644 --- a/packages/server/src/wallet/adjudicator-watcher/__chain-test__/utils.ts +++ b/packages/server/src/wallet/adjudicator-watcher/__chain-test__/utils.ts @@ -34,7 +34,7 @@ function createDepositTransaction(destination: string, DepositLevel: string) { }; } -export async function depositContract( +export async function depositIntoContract( provider: ethers.providers.JsonRpcProvider, participant: string, amount = bigNumberify(5).toHexString(),