mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 21:36:26 +00:00
rpc/test: restore txindexer after setting null
This commit is contained in:
@@ -156,15 +156,18 @@ func testBroadcastTxCommit(t *testing.T, client rpc.HTTPClient) {
|
||||
|
||||
func TestURITx(t *testing.T) {
|
||||
testTx(t, GetURIClient(), true)
|
||||
|
||||
core.SetTxIndexer(&indexer.Null{})
|
||||
testTx(t, GetJSONClient(), false)
|
||||
core.SetTxIndexer(node.ConsensusState().GetState().TxIndexer)
|
||||
}
|
||||
|
||||
func TestJSONTx(t *testing.T) {
|
||||
testTx(t, GetJSONClient(), true)
|
||||
}
|
||||
|
||||
func TestZZZZTxNoIndexer(t *testing.T) {
|
||||
core.SetTxIndexer(&indexer.Null{})
|
||||
testTx(t, GetJSONClient(), false)
|
||||
core.SetTxIndexer(node.ConsensusState().GetState().TxIndexer)
|
||||
}
|
||||
|
||||
func testTx(t *testing.T, client rpc.HTTPClient, withIndexer bool) {
|
||||
|
||||
Reference in New Issue
Block a user