Skip to content

Commit 8c673d7

Browse files
author
Jason Yellick
committed
Fix Broken Master
The random order of endorser iteration caused a fairly consistent flake in this unit test. Change-Id: I6b6edee58fcfddcefc98c9611b184f1ce3ad928d Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
1 parent fe96878 commit 8c673d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/peer/chaincode/query_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ func TestQueryCmdEndorsementFailure(t *testing.T) {
8181
mockCF, err := getMockChaincodeCmdFactory()
8282
assert.NoError(t, err, "Error getting mock chaincode command factory")
8383
mockCF.EndorserClients[0] = common.GetMockEndorserClient(nil, nil)
84+
mockCF.EndorserClients[1] = common.GetMockEndorserClient(nil, nil)
8485

8586
cmd := newQueryCmdForTest(mockCF, args)
8687
err = cmd.Execute()

0 commit comments

Comments
 (0)