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

Hanging #7

Closed
cnguy opened this issue Oct 20, 2017 · 3 comments · Fixed by #13
Closed

Hanging #7

cnguy opened this issue Oct 20, 2017 · 3 comments · Fixed by #13

Comments

@cnguy
Copy link

cnguy commented Oct 20, 2017

I haven't read all the code, but I was wondering why it "hangs" and if it's intended or not.

This is only really important when trying to pass my lib through Travis CI (which also runs a code coverage tool).

https://travis-ci.org/cnguy/kayn/builds/290500366#L552

I set up a single test for now, which quickly executes. Then, the tests are done, but something is running in the background.

Thanks in advance!

Edit: this is only needed if I want to fully test the actual response
But now that I think about it, I could just mock requests as a start if I simply just want to test my API

@Colorfulstan
Copy link
Owner

I don't have experience with Travis, so I can't really tell what might cause it.

In terms of background activitiy, I assume that the Rate-limits keep executing their timeouts for limit resets. Do you think this is a general issue, or just a quirk with Travis?

Having looked up the issue on google it might help if you allow travis to run with sudo, so it can kill the process after the build is done.

happening with multiple setups that require specific shutdown of the process see for example travis-ci/travis-ci#6861 (comment)
and related issues.

@cnguy
Copy link
Author

cnguy commented Oct 20, 2017

@Colorfulstan It's not specifically a Travis CI issue, the limiter can be isolated to some random script and it'll hang (through the timeouts).

I'm already running sudo: true, and the multiple setups = they're usually running extra stuffs like Selenium and whatnot. Still gonna try a bunch of things to see if this is actually an issue or not, I'll get back to you whenever.

edit: For now I'll focus on specifically testing the API first, and then I"ll try the other stuffs in a few days (testing my API should be pretty quick).

image

^ Was littering random console.log's earlier

can close for now if you want

Colorfulstan added a commit that referenced this issue Dec 4, 2017
…/unpause) and have them stop timers if no connected RateLimiters are active"

This reverts commit 13c0c75

Seems to have introduced updating bugs
fixes #9
reopen #7
@Colorfulstan Colorfulstan reopened this Dec 4, 2017
@Colorfulstan
Copy link
Owner

I can't think of how to write a test for this, but I proxy tested it.
In my LeagueJS library, the test-suites would show the hanging behavior, not exiting after execution.
The change fixes that, so It seems to be working as intended now.

Colorfulstan added a commit to Colorfulstan/LeagueJS that referenced this issue Jan 4, 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 a pull request may close this issue.

2 participants