Skip to content

Commit

Permalink
fix: failing ci tests (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoslr committed Feb 22, 2023
1 parent 04aa238 commit d8c2f81
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions packages/payment-processor/test/payment/erc777-stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,24 @@ describe('erc777-stream', () => {
});

describe('Superfluid framework', () => {
it('Should initialize superfluid framework on supported networks', async () => {
const networks = ['arbitrum-one', 'matic', 'avalanche', 'optimism', 'xdai', 'goerli'];
for (const network of networks) {
const provider = getDefaultProvider(network);
const networkValidRequest = {
...validRequest,
currencyInfo: {
...validRequest.currencyInfo,
network,
},
};
const sf = await getSuperFluidFramework(networkValidRequest, provider);
expect(sf).toBeDefined();
}
it.each([
{ network: 'goerli' },
{ network: 'matic' },
{ network: 'xdai' },
{ network: 'optimism' },
{ network: 'avalanche' },
{ network: 'arbitrum-one' },
])('Should initialize superfluid framework on $network', async ({ network }) => {
const provider = getDefaultProvider(network);
const networkValidRequest = {
...validRequest,
currencyInfo: {
...validRequest.currencyInfo,
network,
},
};
const sf = await getSuperFluidFramework(networkValidRequest, provider);
expect(sf).toBeDefined();
});
});

Expand Down Expand Up @@ -201,10 +205,8 @@ describe('erc777-stream', () => {
expect(BigNumber.from(daixBalAfter).sub(daixBalBefore).toString()).toBe(
'1000000000000000000000',
);
console.log(tx);
// Paying fDAIX stream request
tx = await payErc777StreamRequest(validRequest, wallet);
console.log(tx);
confirmedTx = await tx.wait(1);
expect(confirmedTx.status).toBe(1);
expect(tx.hash).not.toBeUndefined();
Expand Down

0 comments on commit d8c2f81

Please sign in to comment.