Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

sdk: fix inconsistent return type of getJob() #318

Merged
merged 1 commit into from
Feb 1, 2019

Conversation

iameli
Copy link
Contributor

@iameli iameli commented Jan 31, 2019

What does this pull request do? Explain your changes. (required)
Fixes #319 and makes the shape of jobs returned by getJob consistent

Specific updates (required)

  • Fixes some async handling in the sdk tests
  • Fixes the now-consistent test failure in getJob

How did you test each of these updates (required)
To the best of my knowledge, I don't believe this transcoderAddress field is yet used anywhere — there are no references outside of the sdk and subgraph projects.

Does this pull request close any open issues?
#319

@yondonfu
Copy link
Member

I think the test failure is due to #319

Fixes livepeer#319

Two tweaks here — `beforeEach` instead of `before` and some tweaks
to async loops so they actually wait until the end — forEach will
return immediately and cause a false positive.
@iameli iameli changed the title [WIP] Polish SDK tests sdk: fix inconsistent return type of getJob() Jan 31, 2019
Copy link
Member

@ericxtang ericxtang left a comment

Choose a reason for hiding this comment

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

I think this is good to merge - getJob is going to be defunct anyways because of the new offchain job negotiation update in Streamflow. :shipit:

@iameli
Copy link
Contributor Author

iameli commented Feb 1, 2019

Cool! I've got another merge request ready as soon as this one can be merged.

@iameli
Copy link
Contributor Author

iameli commented Feb 1, 2019

(But, ah, I can't merge things into this repo yet 😅)

Copy link
Member

@yondonfu yondonfu left a comment

Choose a reason for hiding this comment

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

LGTM 🚢

@yondonfu yondonfu merged commit 3b0c405 into livepeer:master Feb 1, 2019
@iameli iameli deleted the sdk-test-polish branch February 1, 2019 22:53
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.

sdk: getJob() result sometimes includes an object instead of a string for transcoder field
3 participants