-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests] Improve db test performance (#605)
* [tests] Introduce db client coll() function to determine the collection to use Goal: isolate runs in separate databases This doesn't yield any performance improvements, yet. But the next steps (commits) will... * [tests] Improve sessions_test.go performance Use shared mongodb testcontainer. * [tests] Improve db_test.go performance Use shared mongodb testcontainer. * [tests] Reduce time.Sleep in tests from 2sec to 550ms * [tests] Reduce time.Sleep in tests from 2sec to 1sec * Fix SA1029 linter error SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck) see: https://stackoverflow.com/questions/40891345/fix-should-not-use-basic-type-string-as-key-in-context-withvalue-golint * Fix goimports linter error
- Loading branch information
Showing
4 changed files
with
794 additions
and
853 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.