Skip to content

Commit

Permalink
test(channel): add missed disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed May 7, 2024
1 parent a79d9c0 commit 5af09ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ module.exports = {
extension: '.js,.ts',
timeout: process.env.NETWORK ? '500s' : '6s',
ignore: 'test/environment/**',
exit: true // TODO: fix in state channel tests
}
1 change: 1 addition & 0 deletions test/integration/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,7 @@ describe('Channel', () => {
expect(ch.fsmId()).to.be.equal(fsmId);
expect(await ch.round()).to.be.equal(2);
const state = await ch.state();
ch.disconnect();
assertNotNull(state.signedTx);
expect(state.signedTx.encodedTx.tag).to.be.equal(Tag.ChannelOffChainTx);
});
Expand Down

0 comments on commit 5af09ad

Please sign in to comment.