Skip to content

Commit

Permalink
Changed: improved test texts
Browse files Browse the repository at this point in the history
Signed-off-by: diva.exchange <[email protected]>
  • Loading branch information
diva-exchange committed Aug 9, 2023
1 parent 6ffd548 commit 5843044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lib/i2p-sam-datagram.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class TestI2pSamDatagram {
});
destinationRecipient = i2pRecipient.getPublicKey();

console.log(Date.now() + ' - start sending data...');
console.log(Date.now() + ' - start sending messages...');
let sentMsg: number = 0;
const intervalSender: NodeJS.Timer = setInterval(async (): Promise<void> => {
i2pSender.send(destinationRecipient, dataToSend);
Expand All @@ -93,7 +93,7 @@ class TestI2pSamDatagram {
while (!(messageCounterA >= 10 && messageCounterB >= 10)) {
await TestI2pSamDatagram.wait(100);
}
console.log(Date.now() + ' - total Sent: ' + sentMsg);
console.log(Date.now() + ' - total sent messages: ' + sentMsg);
console.log('Arrived: ' + Math.round(((messageCounterA + messageCounterB) / sentMsg) * 1000) / 10 + '%');

clearInterval(intervalSender);
Expand Down

0 comments on commit 5843044

Please sign in to comment.