Commit 23a0bbd
authored
Fixed multichunk test (#1150)
## Description
<!-- Provide a brief summary of the changes made and the issue they aim
to address.-->
- The tests were showing flaky behaviour since the Link expiry check in
isChunkLinkInvalid() could trigger based on stub expiry times. This
caused extra refetch API calls intermittently (2 instead of 1)
- Test expected exactly chunkCount - 1 calls to verify
inline-first-chunk optimization
## Testing
<!-- Describe how the changes have been tested-->
Ran the test 10 times and it passed for all
## Additional Notes to the Reviewer
<!-- Share any additional context or insights that may help the reviewer
understand the changes better. This could include challenges faced,
limitations, or compromises made during the development process.
Also, mention any areas of the code that you would like the reviewer to
focus on specifically. -->
NO_CHANGELOG=true1 parent 90c9492 commit 23a0bbd
1 file changed
Lines changed: 4 additions & 0 deletions
File tree
- src/test/java/com/databricks/jdbc/integration/fakeservice/tests
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
0 commit comments