Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
vitiko committed Dec 15, 2021
1 parent c1a0934 commit 5c47251
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gateway/mock/mock_test.go
Expand Up @@ -50,6 +50,11 @@ var _ = Describe(`Service`, func() {
cPaperGateway = cpservice.NewCPaperGateway(ccService, Channel, ChaincodeName)
})

It("Default invoker", func() {
_, err := cPaperGateway.List(ctx, &empty.Empty{})
Expect(err).NotTo(HaveOccurred())
})

It("Allow to imitate error while access to peer", func() {
ccService.Invoker = mock.FailChaincode(ChaincodeName)

Expand Down

0 comments on commit 5c47251

Please sign in to comment.