Skip to content

Commit

Permalink
core: fix some typos (#4799)
Browse files Browse the repository at this point in the history
Signed-off-by: alwayshang <zhanghonghao@outlook.com>
  • Loading branch information
alwayshang committed Apr 7, 2024
1 parent 22aaf34 commit 210f1ca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/chaincode/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2669,7 +2669,7 @@ var _ = Describe("Handler", func() {
Expect(err).To(MatchError("burger"))
})

It("does not try to delete the tranasction context", func() {
It("does not try to delete the transaction context", func() {
handler.Execute(txParams, "chaincode-name", incomingMessage, time.Second)
Expect(fakeContextRegistry.CreateCallCount()).To(Equal(1))
Expect(fakeContextRegistry.DeleteCallCount()).To(Equal(0))
Expand Down Expand Up @@ -2770,7 +2770,7 @@ var _ = Describe("Handler", func() {
Expect(name).To(Equal("chaincode-id-name"))
})

It("sends registered and ready messsages", func() {
It("sends registered and ready messages", func() {
handler.HandleRegister(incomingMessage)

Eventually(fakeChatStream.SendCallCount).Should(Equal(2))
Expand Down
2 changes: 1 addition & 1 deletion core/chaincode/runtime_launcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ var _ = Describe("RuntimeLauncher", func() {
})
})

Context("when the contaienr terminates before registration", func() {
Context("when the container terminates before registration", func() {
BeforeEach(func() {
fakeRuntime.StartReturns(nil)
fakeRuntime.WaitReturns(-99, nil)
Expand Down
2 changes: 1 addition & 1 deletion core/container/externalbuilder/tar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var _ = Describe("Tar", func() {
Expect(err).NotTo(HaveOccurred())
})

Context("when the archive conains an odd file type", func() {
Context("when the archive contains an odd file type", func() {
It("returns an error", func() {
file, err := os.Open("testdata/archive_with_symlink.tar.gz")
Expect(err).NotTo(HaveOccurred())
Expand Down
2 changes: 1 addition & 1 deletion core/ledger/ledger_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ type CommitNotification struct {
}

// CommitNotificationTxInfo contains the details of a transaction that is included in the CommitNotification
// ChaincodeID will be nil if the transaction is not an endorser transaction. This may or may not be nil if the tranasction is invalid.
// ChaincodeID will be nil if the transaction is not an endorser transaction. This may or may not be nil if the transaction is invalid.
// Specifically, it will be nil if the transaction is marked invalid by the validator (e.g., bad payload or insufficient endorements) and it will be non-nil if the transaction is marked invalid for concurrency conflicts.
// However, it is guaranteed be non-nil if the transaction is a valid endorser transaction.
type CommitNotificationTxInfo struct {
Expand Down

0 comments on commit 210f1ca

Please sign in to comment.