Commit b791c86
authored
test: fix flaky InlineBeginTransactionTest (#664)
The query_ThenUpdate_ThenConsumeResultSet did not take into account that the session pool
initialization will execute 4 BatchCreateSessions requests. These will normally be executed
before the test transaction, but sometimes at least one of those requests might arrive after
the transaction has started. That could cause the last 3 requests on the mock server to be
different from what the test expected.1 parent 0f9b7bd commit b791c86
File tree
2 files changed
+16
-3
lines changed- google-cloud-spanner/src/test/java/com/google/cloud/spanner
2 files changed
+16
-3
lines changedLines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1248 | 1248 | | |
1249 | 1249 | | |
1250 | 1250 | | |
| 1251 | + | |
1251 | 1252 | | |
1252 | | - | |
1253 | | - | |
| 1253 | + | |
1254 | 1254 | | |
1255 | 1255 | | |
1256 | 1256 | | |
1257 | 1257 | | |
1258 | | - | |
1259 | 1258 | | |
1260 | 1259 | | |
1261 | 1260 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1905 | 1905 | | |
1906 | 1906 | | |
1907 | 1907 | | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
1908 | 1922 | | |
1909 | 1923 | | |
1910 | 1924 | | |
| |||
0 commit comments