tendermint/blockchain/v2/routines_test.go

26 lines
353 B
Go
Raw Normal View History

2019-07-25 16:02:47 +02:00
package v2
import (
"testing"
)
func TestReactor(t *testing.T) {
reactor = DummyReactor{}
reactor.Start()
script := Events{
testEvent{},
}
for _, event := range script {
reactor.Receive(event)
}
reactor.Stop()
}
/*
* Can we send a message to all routines
* Can routines emit events
* can we start routines
* can we stop all routines
*/