Commit 584f3ff
authored
fix(test): always record AssertionErrors in InteractiveUserEmulator (#231)
The `close()` sets `closing=true` before `awaitTermination`, so any in-flight user task that calls `recordFailure` after that point would silently drop its error under the !closing.get() guard, making the failure invisible.
`AssertionError`s are always deliberate test failures and are never produced by shutdown I/O, so they should be recorded unconditionally regardless of closing state.1 parent f9a37dc commit 584f3ff
1 file changed
Lines changed: 6 additions & 1 deletion
File tree
- oauth2/core/src/testFixtures/java/com/dremio/iceberg/authmgr/oauth2/test/user
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
| |||
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
| 165 | + | |
| 166 | + | |
162 | 167 | | |
163 | 168 | | |
164 | 169 | | |
| |||
0 commit comments