tendermint/blockchain/v2/reactor_test.go
Sean Braithwaite 5474528db1 Switch to a priority queue:
* Routines will now use a priority queue instead of channels to
    iterate over events
2019-09-12 12:06:26 -04:00

18 lines
271 B
Go

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