-
Notifications
You must be signed in to change notification settings - Fork 136
chore(spanner): fix code and tests #3636
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
Changes from 2 commits
890a294
d4b05a4
6102876
e5d1054
193e095
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -181,7 +181,9 @@ public static void setUpDatabase() throws Exception { | |
| totalSize = 0; | ||
| } | ||
| } | ||
| dbClient.write(mutations); | ||
| if (mutations.size() > 0) { | ||
|
||
| dbClient.write(mutations); | ||
| } | ||
| } | ||
| // Our read/queries are executed with some staleness. | ||
| Thread.sleep(2 * STALENESS_MILLISEC); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Removing this unit test since it is not possible to change the txnstate to
ABORTEDof the TransactionManager using unit tests. This is needed since we are calling resetForRetryAsync, which will fail if transactionstate is not ABORTED.We have same tests covered in mock spanner
java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/MultiplexedSessionDatabaseClientMockServerTest.java
Line 75 in c8d1e63