Skip to content

Commit

Permalink
[FAB-4882] Bug fix in e2e query test
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dong pan committed Jun 20, 2017
1 parent 9b8c6a0 commit ada7f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ada7f75

Please sign in to comment.