tendermint/blockchain/v2/reactor_test.go

18 lines
274 B
Go
Raw Normal View History

package v2
import "testing"
// XXX: This makes assumptions about the message routing
func TestReactor(t *testing.T) {
reactor := Reactor{}
reactor.Start()
script := Events{
2019-08-08 15:53:02 +02:00
struct{}{},
}
for _, event := range script {
reactor.Receive(event)
}
reactor.Wait()
}