How to write tests for multiple cores?

Hi guys,

I want to make sure that my app is horizontally scalable serverside.

I have a Cronjob (using percolate:synced-cron) and within my mocha-based unit- and integrational tests I want to make sure that it (and a lot of the sub-processes it calls) actually works using multiple Cores/CPUs/Containers/Dynos at once.

So for example I want to make sure that only 1 email gets send out by a worker and NOT 1 email per core…

Has anyone some tips on where to start?

1 Like