Skip to content

Update Node dependencies for SignalR - #29905

Merged
BrennanConroy merged 2 commits into
mainfrom
brecon/60npm
Feb 16, 2021
Merged

BrennanConroy merged 2 commits into
mainfrom
brecon/60npm

Conversation

@BrennanConroy

Copy link
Copy Markdown
Member

Converted ConnectionTests.ts to have async tests, somehow using the done pattern caused parallelization issues after updating deps, and anyways, async is better.

@BrennanConroy BrennanConroy added the area-signalr Includes: SignalR clients and servers label Feb 4, 2021
}

if (this.onreconnecting) {
if (this.reconnectingCallbacks.length !== 0) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oops. 😆

@halter73

halter73 commented Feb 5, 2021

Copy link
Copy Markdown
Member

Converted ConnectionTests.ts to have async tests, somehow using the done pattern caused parallelization issues after updating deps, and anyways, async is better.

Do you have more details on this? While I agree async is better, it would be nice to understand the issue was with the done pattern to make sure there isn't a similar issue with async.

@BrennanConroy

Copy link
Copy Markdown
Member Author

Do you have more details on this?

Unfortunately I couldn't find anything. I tried looking at the changes between the two versions and couldn't see anything super obvious. There was a change to allow parallel test execution, but it looked like it got reverted, and it was behind a flag I think.
I did see something about the done pattern either being obsoleted or suggested that it not be used.

@halter73

halter73 commented Feb 5, 2021

Copy link
Copy Markdown
Member

Do you have any example failures that you can link to? Do you know if there could be problems for customers that might be using done instead of async/await?

@BrennanConroy

Copy link
Copy Markdown
Member Author

Do you have any example failures that you can link to?

No, it was all local test failures before making a PR. Basically the test logs were interleaved and some checks were looking for specific logs to exist or not exist and were failing because of that.

Do you know if there could be problems for customers that might be using done instead of async/await?

No clue, but we don't ship the testing framework so I'm not worried about customers hitting this.

@BrennanConroy BrennanConroy added this to the 6.0-preview2 milestone Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-signalr Includes: SignalR clients and servers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants