pokemon-showdown/test/application
Ben Davies 5031794f97 Sockets: fix unit tests (#3281)
* Sockets: fix Sockets.killWorker not disconnecting connections

* Sockets: fix unit tests

- Fix crash when constructing mock sockets in certain cases
- Properly prevent workers from writing to stdout
- Fix race conditions in workers-related tests that were causing false
  positives

* Tests: mock workers now more closely imitate sockets' workers

This helps catch cases where messages are being sent in the wrong order
to the workers, e.g. messages sent to sockets that no longer exist.
2017-02-24 05:38:37 -06:00
..
process-manager.js Rename simulator.js to room-battle.js 2016-10-21 13:21:12 -05:00
rooms.js Sockets: fix unit tests (#3281) 2017-02-24 05:38:37 -06:00
simulator.js Sockets: fix unit tests (#3281) 2017-02-24 05:38:37 -06:00
sockets.js Sockets: fix unit tests (#3281) 2017-02-24 05:38:37 -06:00
team-validator.js Tests: Update TeamValidator tests and add new ones (#2855) 2016-10-27 13:01:35 -05:00
users.js Sockets: fix unit tests (#3281) 2017-02-24 05:38:37 -06:00