Skip to content

chore(test): fix scheduler and subject types #3748

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

Merged
merged 11 commits into from
Jun 5, 2018

Conversation

cartant
Copy link
Collaborator

@cartant cartant commented May 26, 2018

Description:

Continues from PR #3680 and fixes tests for schedulers and subjects.

This should be the last of the fixes.

After this is merged, I'll remove the test_check script and will change test to include type checking. I'll also create a test_fast script - which will be the same as test, but without the type checking - for use with watched builds, etc., as I suspect the type checking will take several seconds.

Related issue (if exists): #3411 #3680

@coveralls
Copy link

coveralls commented May 26, 2018

Coverage Status

Coverage decreased (-0.2%) to 96.654% when pulling b75d4dd on cartant:issue-3411-7 into d7bfc9d on ReactiveX:master.

Copy link
Member

@david-driscoll david-driscoll left a comment

Choose a reason for hiding this comment

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

:shipit:

@@ -71,11 +71,11 @@ describe('Scheduler.asap', () => {
const fakeTimer = sandbox.useFakeTimers();
// callThrough is missing from the declarations installed by the typings tool in stable
const stubSetInterval = (<any> sinon.stub(global, 'setInterval')).callThrough();
function dispatch(state: any): void {
function dispatch(this: any, state: any): void {
Copy link
Member

Choose a reason for hiding this comment

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

I'd love a second pass that removes some of the any types that are being added, but that shouldn't block the PR.

@david-driscoll
Copy link
Member

Waiting to see if @kwonoj can restart the build.

@cartant
Copy link
Collaborator Author

cartant commented May 29, 2018

@david-driscoll I can probably get rid of some of those this-parameter anys pretty quickly with judicious use of typeof. I'll have a look later, whether merged or not.

@kwonoj
Copy link
Member

kwonoj commented May 29, 2018

retriggered build.

@cartant
Copy link
Collaborator Author

cartant commented May 30, 2018

@david-driscoll Used appropriate types instead of any.

@benlesh benlesh merged commit 8874cbe into ReactiveX:master Jun 5, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 5, 2018
@cartant cartant deleted the issue-3411-7 branch September 24, 2020 07:07
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.

5 participants