Skip to content

Conversation

@jimthematrix
Copy link
Contributor

No description provided.


// borrowed from fabric-chaincode-go to guarantee the same
// resolution of "DN" string from x509 certs
// https://github.com/hyperledger/fabric-chaincode-go/blob/main/pkg/cid/cid.go
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this link still relevant now that most of the method has been removed and replaced with the existing .String() behavior?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, not any longer

r <- []byte(`!badjson`) // ignored bad json
r <- []byte(`"not an object"`) // ignored wrong type
r <- data
e.ctx.Done()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we check anything to validate that the events were actually processed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not easily, as no actions are taken in the error branches except logging an error.

@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2021

Codecov Report

Merging #261 (8b7212d) into main (3d9f3ad) will increase coverage by 0.46%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##             main      #261      +/-   ##
===========================================
+ Coverage   99.53%   100.00%   +0.46%     
===========================================
  Files         217       217              
  Lines       12181     12212      +31     
===========================================
+ Hits        12124     12212      +88     
+ Misses         42         0      -42     
+ Partials       15         0      -15     
Impacted Files Coverage Δ
internal/blockchain/fabric/certs.go 100.00% <100.00%> (+46.00%) ⬆️
pkg/fftypes/message.go 100.00% <0.00%> (ø)
internal/config/config.go 100.00% <0.00%> (ø)
internal/assets/manager.go 100.00% <0.00%> (ø)
internal/broadcast/manager.go 100.00% <0.00%> (ø)
internal/events/aggregator.go 100.00% <0.00%> (ø)
internal/events/event_manager.go 100.00% <0.00%> (ø)
internal/apiserver/http_server.go 100.00% <0.00%> (ø)
internal/tokens/fftokens/fftokens.go 100.00% <0.00%> (ø)
internal/blockchain/ethereum/ethereum.go 100.00% <0.00%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d9f3ad...8b7212d. Read the comment docs.

Copy link
Contributor

@awrichar awrichar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good to me. I left some minor comments - you can decide if they warrant any extra tweaks.

Signed-off-by: Jim Zhang <jim.zhang@kaleido.io>
@jimthematrix jimthematrix merged commit debd623 into hyperledger:main Oct 18, 2021
@jimthematrix jimthematrix deleted the fabric-tests branch October 18, 2021 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants