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

Various test improvements #115

Merged
merged 8 commits into from
Jun 8, 2021
Merged

Various test improvements #115

merged 8 commits into from
Jun 8, 2021

Conversation

fancycode
Copy link
Member

No description provided.

@fancycode fancycode force-pushed the test-improvements branch 3 times, most recently from c118224 to 9e0965f Compare June 7, 2021 13:05
@coveralls
Copy link

coveralls commented Jun 7, 2021

Pull Request Test Coverage Report for Build 917465153

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 91 of 108 (84.26%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on test-improvements at 46.584%

Changes Missing Coverage Covered Lines Changed/Added Lines %
natsclient_loopback.go 52 55 94.55%
natsclient.go 0 6 0.0%
api_signaling.go 4 12 33.33%
Totals Coverage Status
Change from base Build 914841384: 46.6%
Covered Lines: 3532
Relevant Lines: 7582

💛 - Coveralls

@fancycode fancycode force-pushed the test-improvements branch 2 times, most recently from b2e7470 to eb16d45 Compare June 7, 2021 14:13
Only use one goroutine per client instead of one per subscription.
This ensures that (like with the "real" client), all messages are
processed in order across different subscriptions.
Can happen mostly during tests (e.g. TestClientTakeoverRoomSession)
where the new client could receive the "leave" event that was sent
before it joined the room (but got delivered after joining).
@fancycode fancycode marked this pull request as ready for review June 8, 2021 07:26
@fancycode fancycode merged commit 35d3bf8 into master Jun 8, 2021
@fancycode fancycode deleted the test-improvements branch June 8, 2021 07:27
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 this pull request may close these issues.

2 participants