Skip to content

Commit ed1833d

Browse files
committed
Update log message/test name for CheckCommitReadiness
These still refer to simulating the commit of a chaincode definition instead of the new verbiage. FAB-16389 #done Change-Id: Ie73015ad66d24e6bc8b9d0ba9ef537076d7c07e5 Signed-off-by: Will Lahti <wtlahti@us.ibm.com>
1 parent ce5c570 commit ed1833d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/chaincode/lifecycle/lifecycle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ func (ef *ExternalFunctions) CheckCommitReadiness(chname, ccname string, cd *Cha
273273
return nil, err
274274
}
275275

276-
logger.Infof("successfully simulated committing chaincode definition %s, name '%s' on channel '%s'", cd, ccname, chname)
276+
logger.Infof("successfully checked commit readiness of chaincode definition %s, name '%s' on channel '%s'", cd, ccname, chname)
277277

278278
return approvals, nil
279279
}

core/chaincode/lifecycle/lifecycle_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ var _ = Describe("ExternalFunctions", func() {
804804
resources.Serializer.Serialize("namespaces", "cc-name#5", &lifecycle.ChaincodeParameters{}, fakeOrgStates[1])
805805
})
806806

807-
It("simulates committing the chaincode definition and returns the approvals", func() {
807+
It("checks the commit readiness of a chaincode definition and returns the approvals", func() {
808808
approvals, err := ef.CheckCommitReadiness("my-channel", "cc-name", testDefinition, fakePublicState, []lifecycle.OpaqueState{fakeOrgStates[0], fakeOrgStates[1]})
809809
Expect(err).NotTo(HaveOccurred())
810810
Expect(approvals).To(Equal(map[string]bool{

0 commit comments

Comments
 (0)