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

Extract GETOrder behavior into unit testable method #1483 #1682

Merged
merged 5 commits into from
Aug 20, 2019

Conversation

ozamiatin
Copy link
Contributor

Extracted method core.GetOrder()
Added unit test for it

Copy link
Member

@placer14 placer14 left a comment

Choose a reason for hiding this comment

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

Thank you for submitting this extraction. This looks great overall with some thoughts provided to improve the unit test. Would like to see more of this, but we're trying to merge two large pull requests (#1666 and #1675) which may end up conflicting heavily with changes in the core package. Please communicate via a new issue or join our slack if you'd like to coordinate your contributions with us. We can probably get this merged quickly but might not be able to on future pull requests.

That said, if you would clean these up, I'll get this in. Thanks again!

core/order_test.go Outdated Show resolved Hide resolved
core/order_test.go Outdated Show resolved Hide resolved
core/order_test.go Outdated Show resolved Hide resolved
core/order_test.go Outdated Show resolved Hide resolved
core/order_test.go Outdated Show resolved Hide resolved
core/order_test.go Show resolved Hide resolved
@placer14 placer14 self-assigned this Aug 20, 2019
@placer14
Copy link
Member

PS: Don't worry about the coveralls CI failure. It always fails for external contributions.

@ozamiatin
Copy link
Contributor Author

Thank you very much for the review @placer14

Copy link
Member

@placer14 placer14 left a comment

Choose a reason for hiding this comment

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

GTM with one minor nitpick. If you can get to it, great. Otherwise, we'll clean it up after merge. 🤝

core/order_test.go Outdated Show resolved Hide resolved
@placer14 placer14 mentioned this pull request Aug 20, 2019
2 tasks
@placer14
Copy link
Member

Thanks @ozamiatin. If you'd like to continue, here are some good next steps: #1683

@placer14 placer14 merged commit e225593 into OpenBazaar:master Aug 20, 2019
@ozamiatin
Copy link
Contributor Author

Great, thanks a lot! Will look at #1683

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants