From 9227d55ae045e2df28d1865b604400556c51e822 Mon Sep 17 00:00:00 2001 From: Matthew Sykes Date: Fri, 17 Apr 2020 11:40:56 -0400 Subject: [PATCH] Revert "increase waitFor couchdb index creation" This reverts commit adc137f986eee0c05579be0385768e437b31e4ec. Change-Id: I72df75480a96d754d5d2afb447901044d4510be7 Signed-off-by: Matthew Sykes --- .../kvledger/txmgmt/statedb/statecouchdb/statecouchdb_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb_test.go b/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb_test.go index e256607bc94..58530ca191c 100644 --- a/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb_test.go +++ b/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb_test.go @@ -685,7 +685,7 @@ func TestHandleChaincodeDeploy(t *testing.T) { } return true } - assert.Eventually(t, queryUsingIndex, 6*time.Second, 1*time.Second, "error executing query with sort") + assert.Eventually(t, queryUsingIndex, 2*time.Second, 100*time.Millisecond, "error executing query with sort") //Query namespace "ns2", index is only created in "ns1". This should return an error. _, err = db.ExecuteQuery("ns2", queryString) @@ -738,7 +738,7 @@ func TestHandleChaincodeDeployErroneousIndexFile(t *testing.T) { } return true } - assert.Eventually(t, queryUsingIndex, 6*time.Second, 1*time.Second, "error executing query with sort") + assert.Eventually(t, queryUsingIndex, 2*time.Second, 100*time.Millisecond, "error executing query with sort") } func TestIsBulkOptimizable(t *testing.T) {