-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Test transactions #6022
Test transactions #6022
Conversation
Close #6019 |
Codecov Report
@@ Coverage Diff @@
## master #6022 +/- ##
==========================================
+ Coverage 93.77% 93.91% +0.14%
==========================================
Files 164 164
Lines 11096 11084 -12
==========================================
+ Hits 10405 10410 +5
+ Misses 691 674 -17
Continue to review full report at Codecov.
|
spec/MongoStorageAdapter.spec.js
Outdated
expect(call.args[2].session).toBe(undefined); | ||
}); | ||
expect(found).toBe(true); | ||
databaseAdapter.database.serverConfig.cursor.calls |
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.
Including an assertion of the number of calls would be a good idea, since you're not using found
.
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.
I am actually not sure that the other operations will be called. The right one is the one with the found. I added the others just in case.
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.
I took the freedom to commit the separation of these tests. What do you think?
* Test transactions * test: Separate transaction tests for SDK
No description provided.