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

test(fetch): Rewrite fetch test. Don't run connect, test expectations. #1211

Merged
merged 1 commit into from
Mar 21, 2020

Conversation

dustmop
Copy link
Contributor

@dustmop dustmop commented Mar 20, 2020

Rewrite the TestFetchCommand to fix a number of problems. No longer runs "qri connect". Doesn't use the 2503 port. No longer serves RPC and Websockets. Removes the 5 second wait. Actually inspects the output of log and fetch to validate that they're working, with stable timestamps. Should fix a number of flakey tests and overall run faster.

@dustmop dustmop added test fix A bug fix labels Mar 20, 2020
@dustmop dustmop self-assigned this Mar 20, 2020
@dustmop dustmop force-pushed the rewrite-fetch-test branch 2 times, most recently from c2d986b to 1a7d591 Compare March 20, 2020 20:07
@dustmop
Copy link
Contributor Author

dustmop commented Mar 20, 2020

Should fix #1046, may also fix #1159.

Copy link
Member

@b5 b5 left a comment

Choose a reason for hiding this comment

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

Looks great. I'd be delighted to see this test cause fewer problems in CI

Comment on lines +22 to +23
// TODO(dustmop): Move most of the below hooks into a common testRunner. Maybe the basic
// TestRunner will work?
Copy link
Member

Choose a reason for hiding this comment

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

The test runner itself looks like it's worth a little scrutiny, but agree with putting a TODO here & bundling up examining the test runner for another day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A bug fix test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants