-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
FIX: Transaction should only abort when all promises finished #5878
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
FIX: Transaction should only abort when all promises finished #5878
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5878 +/- ##
==========================================
+ Coverage 93.65% 93.73% +0.07%
==========================================
Files 153 153
Lines 10708 10703 -5
==========================================
+ Hits 10029 10032 +3
+ Misses 679 671 -8
Continue to review full report at Codecov.
|
@@ -96,7 +96,8 @@ | |||
"build": "babel src/ -d lib/ --copy-files", | |||
"watch": "babel --watch src/ -d lib/ --copy-files", | |||
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=mmapv1} mongodb-runner start", | |||
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=mmapv1} TESTING=1 jasmine", | |||
"testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.0.4} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=mmapv1} TESTING=1 jasmine", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to make it easier for testing in local machine. You can run npm run pretest
a single time, then run npm run testonly
as many times you need, then npm run posttest
. Since the mongo is already started, is much faster to run testonly
than test
. I turned out leaving it in the PR by mistake but I really think it is a good idea. If you prefer I can revert. Let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep it. Anything that can make development easier is ok with me.
Transaction was aborting before all promises have either resolved or rejected and tests were hanging because of this.