Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Apr 29, 2024
1 parent 74ad68c commit b46436e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ test('NUClearNet emits leave events', async () => {

console.log('Before peerA.net.on(nuclear_leave)');
peerA.net.on('nuclear_leave', (peer) => {
console.log('nuclear_leave event triggered');
console.log('nuclear_leave event triggered', peer.name);
// End the test when B disconnects from A
if (peer.name === peerB.net.options.name) {
cleanUp();
Expand All @@ -210,7 +210,7 @@ test('NUClearNet emits leave events', async () => {

console.log('Before peerA.net.on(nuclear_join)');
peerA.net.on('nuclear_join', (peer) => {
console.log('nuclear_join event triggered');
console.log('nuclear_join event triggered', peer.name);
// Disconnect B after it joins, to trigger the leave event on A
if (peer.name === peerB.net.options.name) {
peerB.net.disconnect();
Expand Down

0 comments on commit b46436e

Please sign in to comment.