From ada7f750353c9fed921c631ae3e409ae69b848ba Mon Sep 17 00:00:00 2001 From: dong pan Date: Tue, 20 Jun 2017 16:13:48 +0800 Subject: [PATCH] [FAB-4882] Bug fix in e2e query test A t.end was misplaced in queryInstalledChaincodes test. Caused the for loop can be executed only once. Change-Id: I15eb07eae85b7b2020f1e72712914b1d1e11b121 Signed-off-by: dong pan --- test/integration/query.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/query.js b/test/integration/query.js index ff77e9d04b..2ca28d3bfa 100644 --- a/test/integration/query.js +++ b/test/integration/query.js @@ -396,10 +396,10 @@ test(' ---->>>>> Query Installed Chaincodes working <<<<<-----', function(t) { && response.chaincodes[i].path === testUtil.CHAINCODE_PATH) { found = true; } - t.end(); } if (found) { t.pass('queryInstalledChaincodes - found match for e2e'); + t.end(); } else { t.fail('queryInstalledChaincodes - did not find match for e2e'); t.end();