mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-05-01 13:48:57 +08:00

Add a Stream type that handle the request to /events/:event and write tests for event stream Add a test for the events/:event endpoint that actually tests the endpoint response Using <-time.After in a 'select' creates one channel every time, let's use a time.Timer instead so that we reuse the same channel