EventSwitch is an interface

This commit is contained in:
Ethan Buchman
2016-10-10 03:20:42 -04:00
parent 48fa21511b
commit 1652dc8b3f
2 changed files with 24 additions and 15 deletions

View File

@ -322,7 +322,7 @@ func sumReceivedNumbers(numbers, doneSum chan uint64) {
// to `offset` + 999. It additionally returns the addition of all integers
// sent on `doneChan` for assertion that all events have been sent, and enabling
// the test to assert all events have also been received.
func fireEvents(evsw *EventSwitch, event string, doneChan chan uint64,
func fireEvents(evsw EventSwitch, event string, doneChan chan uint64,
offset uint64) {
var sentSum uint64 = 0
for i := offset; i <= offset+uint64(999); i++ {