Skip to content
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

Merged
merged 2 commits into from
May 5, 2020
Merged

Conversation

rvl
Copy link
Contributor

@rvl rvl commented May 1, 2020

Issue Number

Relates to #1577 / ADP-83.

Overview

Adds a test of NetworkLayer.getTxParameters against the self-node

@rvl rvl self-assigned this May 1, 2020
@rvl rvl force-pushed the rvl/adp-83/local-state-query-test branch 2 times, most recently from 6a54497 to 2418f9d Compare May 1, 2020 15:14
recoverAll retryPolicy $ const $
getTxParameters nl `shouldReturn` txParameters gbp
msg <- mapMaybe isMsgTxParams <$> getLogs
msg `shouldBe` [txParameters gbp]
Copy link
Member

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.

Copy link
Contributor Author

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.

@rvl
Copy link
Contributor Author

rvl commented May 5, 2020

bors r+

iohk-bors bot added a commit that referenced this pull request May 5, 2020
1618: Unit test for LocalStateQuery r=rvl a=rvl

### Issue Number

Relates to #1577 / ADP-83.

### Overview

Adds a test of NetworkLayer.getTxParameters against the self-node

Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 5, 2020

Build failed

@rvl rvl force-pushed the rvl/adp-83/local-state-query-test branch from 2418f9d to 87e8dc3 Compare May 5, 2020 04:35
@rvl
Copy link
Contributor Author

rvl commented May 5, 2020

Socket file issue on macos - fixed.

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 5, 2020

@iohk-bors iohk-bors bot merged commit 76f0c97 into master May 5, 2020
@iohk-bors iohk-bors bot deleted the rvl/adp-83/local-state-query-test branch May 5, 2020 05:45
@rvl rvl added this to the (ADP-83) Local State Query milestone May 5, 2020
@KtorZ KtorZ added the ADDING FEATURE Mark a PR as adding a new feature, for auto-generated CHANGELOG label May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADDING FEATURE Mark a PR as adding a new feature, for auto-generated CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants