From 16bffdf7ab4b6f0699966bf0f24bacb7a5d32d60 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Thu, 13 Apr 2017 16:38:44 -0400 Subject: [PATCH] rpc/test: restore txindexer after setting null --- rpc/test/client_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpc/test/client_test.go b/rpc/test/client_test.go index 46fbf699..8a41d397 100644 --- a/rpc/test/client_test.go +++ b/rpc/test/client_test.go @@ -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) {