Skip to content

Conversation

@davimacedo
Copy link
Member

Transaction was aborting before all promises have either resolved or rejected and tests were hanging because of this.

@davimacedo davimacedo requested a review from dplewis August 1, 2019 00:57
@codecov
Copy link

codecov bot commented Aug 1, 2019

Codecov Report

Merging #5878 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/ParseServerRESTController.js 98.18% <100%> (+3.44%) ⬆️
src/batch.js 91.83% <100%> (+1.45%) ⬆️
...dapters/Storage/Postgres/PostgresStorageAdapter.js 96.87% <0%> (+0.08%) ⬆️
src/RestWrite.js 93.56% <0%> (+0.16%) ⬆️
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 92.92% <0%> (+0.7%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update baa5dae...15de41b. Read the comment docs.

"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",
Copy link
Member

Choose a reason for hiding this comment

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

Why this change?

Copy link
Member Author

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.

Copy link
Member

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.

@davimacedo davimacedo merged commit 14a8d33 into parse-community:master Aug 1, 2019
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
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