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

add test Wallet has the same tip as network/information #829

Merged
merged 1 commit into from
Oct 15, 2019

Conversation

piotr-iohk
Copy link
Contributor

Issue Number

#819

Overview

  • add test checking that wallet has the same tip as network/information endpoint

Comments

@piotr-iohk piotr-iohk self-assigned this Oct 15, 2019
@piotr-iohk piotr-iohk requested a review from KtorZ October 15, 2019 15:34
sync <- getNetworkInfo
verify sync [ expectFieldEqual DSL.syncProgress Ready ]
r <- getNetworkInfo
let (Right epochNum) = fmap (epochNumber . tip) (snd r)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let (Right epochNum) = fmap (epochNumber . tip) (snd r)
let epochNum = getFromResponse (#tip . #epochNumber)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated!

expectEventually' ctx state Ready w
expectEventually' ctx (#tip . #epochNumber) epochNum w
expectEventually' ctx (#tip . #slotNumber) slotNum w
expectEventually' ctx (#tip . #height) blockHeight w
Copy link
Member

Choose a reason for hiding this comment

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

👍

@piotr-iohk piotr-iohk force-pushed the piotr/network-integration-more branch from f0fa3ef to 1187d2e Compare October 15, 2019 15:58
Copy link
Contributor

@paweljakubas paweljakubas left a comment

Choose a reason for hiding this comment

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

LGTM

@KtorZ
Copy link
Member

KtorZ commented Oct 15, 2019

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Oct 15, 2019

Merge conflict (retrying...)

iohk-bors bot added a commit that referenced this pull request Oct 15, 2019
827: Add syncProgressRelativeToCurrentTime helper r=KtorZ a=Anviking

# Issue Number

#711 

# Overview

- [x] I made it easier to use `syncProgress` from StakePoolMetrics (or potential other places) by

    1. adding a helper `syncProgressRelativeToTime :: SlotParameters -> BlockHeader -> SyncProgress`
    2. Adding `slotParams :: BlockchainParameters -> SlotParameters`

# Comments

<!-- Additional comments or screenshots to attach if any -->

<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Acknowledge any changes required to the Wiki
-->


829: add test Wallet has the same tip as network/information r=KtorZ a=piotr-iohk

# Issue Number

#819

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [ ] add test checking that wallet has the same tip as network/information endpoint


# Comments

<!-- Additional comments or screenshots to attach if any -->

<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Acknowledge any changes required to the Wiki
-->


Co-authored-by: Johannes Lund <johannes.lund@iohk.io>
Co-authored-by: Piotr Stachyra <piotr.stachyra@iohk.io>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Oct 15, 2019

Build succeeded

@iohk-bors iohk-bors bot merged commit 1187d2e into master Oct 15, 2019
@piotr-iohk piotr-iohk deleted the piotr/network-integration-more branch October 16, 2019 07:40
@KtorZ KtorZ added this to the Byron Wallet Support milestone Oct 17, 2019
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