mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
fix test
This commit is contained in:
parent
336c2f4fe1
commit
f80f6445a6
@ -107,14 +107,15 @@ func TestWALCrash(t *testing.T) {
|
|||||||
{"block with a smaller part size",
|
{"block with a smaller part size",
|
||||||
func(cs *ConsensusState, ctx context.Context) {
|
func(cs *ConsensusState, ctx context.Context) {
|
||||||
// XXX: is there a better way to change BlockPartSizeBytes?
|
// XXX: is there a better way to change BlockPartSizeBytes?
|
||||||
params := cs.state.ConsensusParams
|
cs.state.ConsensusParams.BlockPartSizeBytes = 512
|
||||||
params.BlockPartSizeBytes = 512
|
cs.state.Save()
|
||||||
cs.state.ConsensusParams = params
|
go sendTxs(cs, ctx)
|
||||||
sendTxs(cs, ctx)
|
|
||||||
},
|
},
|
||||||
1},
|
1},
|
||||||
{"many non-empty blocks",
|
{"many non-empty blocks",
|
||||||
sendTxs,
|
func(cs *ConsensusState, ctx context.Context) {
|
||||||
|
go sendTxs(cs, ctx)
|
||||||
|
},
|
||||||
3},
|
3},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,7 +148,7 @@ LOOP:
|
|||||||
|
|
||||||
// start sending transactions
|
// start sending transactions
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
go initFn(cs, ctx)
|
initFn(cs, ctx)
|
||||||
|
|
||||||
// clean up WAL file from the previous iteration
|
// clean up WAL file from the previous iteration
|
||||||
walFile := cs.config.WalFile()
|
walFile := cs.config.WalFile()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user