sudomesh / monitor

a way to monitor health of (people's open) network
GNU General Public License v3.0
5 stars 7 forks source link

simulate-activity.js should simulate POSTs from different IPs at different times #40

Closed bennlich closed 4 years ago

bennlich commented 5 years ago

simulate-activity.js simulates POSTs from exitnodes to help you test the monitor app locally.

Currently, all the simulated POSTs occur simultaneously, which is not what happens with real exitnodes (each one executes a POST whenever it wants).

The script should be modified to send the second POST after waiting for a second after the first POST.

This would've quickly revealed the bug described in this comment.

cc @thedig