hackclub / bag

A Slack based RPG system!
https://bag.hackclub.com
8 stars 2 forks source link

Stop using sleep() for test action routes #12

Open jianmin-chen opened 7 months ago

jianmin-chen commented 7 months ago

For the sake of time, sleep() (which relies on setTimeout is still being used in test action routes since those aren't user-facing. Move test action routes off sleep() and onto a scheduler, which requires adapted schedulers to return a promise or callback when they're done.