Commit 7aab561
Fix ProviderTest.itCanDoAValueEvaluation race condition on Java 11
Add Awaitility.await() guard before asserting on getObjectValue result,
matching the pattern used by the other evaluation tests (boolean, string,
double). Without this, setProvider (non-blocking) may not have completed
by the time getObjectValue is called, returning the default Value() whose
asStructure() is null — causing a NullPointerException on Java 11.
Co-Authored-By: rlamb@launchdarkly.com <kingdewman@gmail.com>1 parent 295d286 commit 7aab561
1 file changed
Lines changed: 7 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
131 | 138 | | |
132 | 139 | | |
133 | 140 | | |
| |||
0 commit comments