mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 20:21:56 +00:00
fix recursion
This commit is contained in:
@@ -7,8 +7,12 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
// NOTE: this only tests with the LogicalTicker.
|
||||
// How do you test a real-clock ticker properly?
|
||||
func TestDefaultTicker(t *testing.T) {
|
||||
ticker := defaultTickerMaker(time.Millisecond * 10)
|
||||
<-ticker.Chan()
|
||||
ticker.Stop()
|
||||
}
|
||||
|
||||
func TestRepeat(t *testing.T) {
|
||||
|
||||
ch := make(chan time.Time, 100)
|
||||
|
Reference in New Issue
Block a user