tendermint/blockchain/v2/routines_test.go
Sean Braithwaite 97a7fcb183 WIP
2019-07-25 16:02:47 +02:00

26 lines
353 B
Go

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
*/