Skip to content

Commit

Permalink
add a node about an occasional failing test which isn't a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zemse committed May 27, 2020
1 parent e792445 commit 45229ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/json-rpc/peers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export const Peers = () =>
`Wallet address is not defined for peer ${peer.connectionUrl}`
);
}
// console.log(kamiWalletAddresses, peer.walletAddress);

// IMP Note: if you get this assert fail, probably the node is not restarted
// (a random peer gets added when doing the handshake test, and it's retained if node is not restarted)
// so to get the tests pass again, simply restart all the associated nodes and re-run the tests
assert.ok(
kamiWalletAddresses.includes(peer.walletAddress.slice(2)),
'peer is not recognized correctly properly'
Expand Down

0 comments on commit 45229ac

Please sign in to comment.