Commit fbf7589
[bugfix] Force HTTP/1.1 in AbstractHttpTest and fix mock expectations in TxnTest
Two fixes bundled here:
1. AbstractHttpTest.newHttpClient(): add .version(HTTP_1_1) to prevent RST_STREAM
hangs. GetParameterTest (and 10 other RESTTest subclasses) were silently stalling
under HTTP/2, causing the 45-minute CI unit-test timeout to trigger. Fixing the
shared factory covers all subclasses in one place.
2. TransactionManagerTestHelper: add expect(isShuttingDownOrDown()).andReturn(false)
to the EasyMock setup. Our TransactionManager.processSystemTasks() change added a
pool.isShuttingDownOrDown() guard; the strict mock had no expectation for that call,
causing TxnTest and ReusableTxnTest to fail with "Unexpected method call".
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a2510ed commit fbf7589
2 files changed
Lines changed: 3 additions & 0 deletions
File tree
- exist-core/src/test/java/org/exist
- http
- storage/txn
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
0 commit comments