From 22571511b54b3f965908d4e51134d18b8ffa0733 Mon Sep 17 00:00:00 2001 From: Bret Harrison Date: Fri, 20 Sep 2019 11:59:30 -0400 Subject: [PATCH] FABN-1379 NodeSDK fabric-ca-client test fix Identity service will return 1 or more identities. Signed-off-by: Bret Harrison Change-Id: Ibc4af5fd09bb03bc4841994b8fc950855365fd7d --- test/integration/fabric-ca-identity-service-tests.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/fabric-ca-identity-service-tests.js b/test/integration/fabric-ca-identity-service-tests.js index 7f53a8b94f..c0897354ec 100644 --- a/test/integration/fabric-ca-identity-service-tests.js +++ b/test/integration/fabric-ca-identity-service-tests.js @@ -118,17 +118,17 @@ test('\n\n ** FabricCAServices - IdentityService Test **\n\n', async (t) => { // identity can only find itself resp = await hfcaIdentityService1.getAll(identity); t.equal(resp.success, true); - t.equal(resp.result.identities.length, 1); + t.equal(resp.result.identities.length > 0, true); // admin of ca1 can find two identities resp = await hfcaIdentityService1.getAll(admin1); t.equal(resp.success, true); - t.equal(resp.result.identities.length, 2); + t.equal(resp.result.identities.length > 1, true); // admin of ca2 can only find 1 identity resp = await hfcaIdentityService2.getAll(admin2); t.equal(resp.success, true); - t.equal(resp.result.identities.length, 1); + t.equal(resp.result.identities.length > 0, true); // update test identity with admin1 resp = await hfcaIdentityService1.update(identity._name, update, admin1);