mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-02 18:12:15 +00:00
26 lines
353 B
Go
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
|
|
*/
|