|
29 | 29 | import java.util.stream.Collectors; |
30 | 30 | import javax.annotation.Nullable; |
31 | 31 | import org.assertj.core.api.ListAssert; |
32 | | -import org.awaitility.core.ConditionTimeoutException; |
33 | 32 |
|
34 | 33 | /** |
35 | 34 | * This interface defines a common set of operations for interaction with OpenTelemetry SDK and |
@@ -118,25 +117,7 @@ private <T extends Consumer<TraceAssert>> void waitAndAssertTraces( |
118 | 117 | List<T> assertionsList = new ArrayList<>(); |
119 | 118 | assertions.forEach(assertionsList::add); |
120 | 119 |
|
121 | | - try { |
122 | | - await() |
123 | | - .untilAsserted(() -> doAssertTraces(traceComparator, assertionsList, verifyScopeVersion)); |
124 | | - } catch (Throwable t) { |
125 | | - // awaitility is doing a jmx call that is not implemented in GraalVM: |
126 | | - // call: |
127 | | - // https://github.com/awaitility/awaitility/blob/fbe16add874b4260dd240108304d5c0be84eabc8/awaitility/src/main/java/org/awaitility/core/ConditionAwaiter.java#L157 |
128 | | - // see https://github.com/oracle/graal/issues/6101 (spring boot graal native image) |
129 | | - if (t.getClass().getName().equals("com.oracle.svm.core.jdk.UnsupportedFeatureError") |
130 | | - || t instanceof ConditionTimeoutException) { |
131 | | - // Don't throw this failure since the stack is the awaitility thread, causing confusion. |
132 | | - // Instead, just assert one more time on the test thread, which will fail with a better |
133 | | - // stack trace. |
134 | | - // TODO(anuraaga): There is probably a better way to do this. |
135 | | - doAssertTraces(traceComparator, assertionsList, verifyScopeVersion); |
136 | | - } else { |
137 | | - throw t; |
138 | | - } |
139 | | - } |
| 120 | + doAssertTraces(traceComparator, assertionsList, verifyScopeVersion); |
140 | 121 | } |
141 | 122 |
|
142 | 123 | private <T extends Consumer<TraceAssert>> void doAssertTraces( |
|
0 commit comments