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

2 Commits

Author SHA1 Message Date
Rafael Magana
1f09fb021b Add SSE test coverage
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
2015-04-07 16:04:40 -07:00
Adrian Zankich
52e3ffc735 Rename test helpers so they don't impact coverage 2014-12-18 14:07:48 -08:00