tendermint/blockchain/v2/reactor_test.go
Sean Braithwaite d1671d6175 blockchain v2: routines
+ Include an implementaiton of the routines specified in ADR-43
    along with a demuxer and some dummy reactor code
2019-08-03 09:19:32 +02:00

18 lines
275 B
Go

package v2
import "testing"
// XXX: This makes assumptions about the message routing
func TestReactor(t *testing.T) {
reactor := Reactor{}
reactor.Start()
script := Events{
testEvent{},
}
for _, event := range script {
reactor.Receive(event)
}
reactor.Wait()
}