tendermint/blockchain/v2/routines_test.go

19 lines
228 B
Go
Raw Normal View History

2019-07-25 16:02:47 +02:00
package v2
import (
"testing"
)
func TestReactor(t *testing.T) {
2019-07-27 10:58:58 +02:00
reactor := DummyReactor{}
2019-07-25 16:02:47 +02:00
reactor.Start()
script := Events{
testEvent{},
}
for _, event := range script {
reactor.Receive(event)
}
2019-07-29 11:58:13 +02:00
reactor.Wait()
2019-07-25 16:02:47 +02:00
}