-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit test for LocalStateQuery #1618
Conversation
6a54497
to
2418f9d
Compare
recoverAll retryPolicy $ const $ | ||
getTxParameters nl `shouldReturn` txParameters gbp | ||
msg <- mapMaybe isMsgTxParams <$> getLogs | ||
msg `shouldBe` [txParameters gbp] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels more like an integration test than a unit test though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The byron network layer is not set up very well for unit testing, so using the real cardano-node was the best that I could do.
bors r+ |
Build failed |
2418f9d
to
87e8dc3
Compare
Socket file issue on macos - fixed. bors r+ |
Build succeeded |
Issue Number
Relates to #1577 / ADP-83.
Overview
Adds a test of NetworkLayer.getTxParameters against the self-node