mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 06:01:21 +00:00
comment out tests for now
https://github.com/tendermint/tendermint/pull/1173#issuecomment-363173047
This commit is contained in:
parent
11b68f1934
commit
84a0a1987c
@ -6,8 +6,6 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/fortytw2/leaktest"
|
|
||||||
"github.com/pkg/errors"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"github.com/go-kit/kit/log/term"
|
"github.com/go-kit/kit/log/term"
|
||||||
@ -114,44 +112,44 @@ func TestReactorBroadcastTxMessage(t *testing.T) {
|
|||||||
waitForTxs(t, txs, reactors)
|
waitForTxs(t, txs, reactors)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestBroadcastTxForPeerStopsWhenPeerStops(t *testing.T) {
|
// func TestBroadcastTxForPeerStopsWhenPeerStops(t *testing.T) {
|
||||||
if testing.Short() {
|
// if testing.Short() {
|
||||||
t.Skip("skipping test in short mode.")
|
// t.Skip("skipping test in short mode.")
|
||||||
}
|
// }
|
||||||
|
|
||||||
config := cfg.TestConfig()
|
// config := cfg.TestConfig()
|
||||||
const N = 2
|
// const N = 2
|
||||||
reactors := makeAndConnectMempoolReactors(config, N)
|
// reactors := makeAndConnectMempoolReactors(config, N)
|
||||||
defer func() {
|
// defer func() {
|
||||||
for _, r := range reactors {
|
// for _, r := range reactors {
|
||||||
r.Stop()
|
// r.Stop()
|
||||||
}
|
// }
|
||||||
}()
|
// }()
|
||||||
|
|
||||||
// stop peer
|
// // stop peer
|
||||||
sw := reactors[1].Switch
|
// sw := reactors[1].Switch
|
||||||
sw.StopPeerForError(sw.Peers().List()[0], errors.New("some reason"))
|
// sw.StopPeerForError(sw.Peers().List()[0], errors.New("some reason"))
|
||||||
|
|
||||||
// check that we are not leaking any go-routines
|
// // check that we are not leaking any go-routines
|
||||||
// i.e. broadcastTxRoutine finishes when peer is stopped
|
// // i.e. broadcastTxRoutine finishes when peer is stopped
|
||||||
leaktest.CheckTimeout(t, 10*time.Second)()
|
// leaktest.CheckTimeout(t, 10*time.Second)()
|
||||||
}
|
// }
|
||||||
|
|
||||||
func TestBroadcastTxForPeerStopsWhenReactorStops(t *testing.T) {
|
// func TestBroadcastTxForPeerStopsWhenReactorStops(t *testing.T) {
|
||||||
if testing.Short() {
|
// if testing.Short() {
|
||||||
t.Skip("skipping test in short mode.")
|
// t.Skip("skipping test in short mode.")
|
||||||
}
|
// }
|
||||||
|
|
||||||
config := cfg.TestConfig()
|
// config := cfg.TestConfig()
|
||||||
const N = 2
|
// const N = 2
|
||||||
reactors := makeAndConnectMempoolReactors(config, N)
|
// reactors := makeAndConnectMempoolReactors(config, N)
|
||||||
|
|
||||||
// stop reactors
|
// // stop reactors
|
||||||
for _, r := range reactors {
|
// for _, r := range reactors {
|
||||||
r.Stop()
|
// r.Stop()
|
||||||
}
|
// }
|
||||||
|
|
||||||
// check that we are not leaking any go-routines
|
// // check that we are not leaking any go-routines
|
||||||
// i.e. broadcastTxRoutine finishes when reactor is stopped
|
// // i.e. broadcastTxRoutine finishes when reactor is stopped
|
||||||
leaktest.CheckTimeout(t, 10*time.Second)()
|
// leaktest.CheckTimeout(t, 10*time.Second)()
|
||||||
}
|
// }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user