Skip to content

Commit aebb9c9

Browse files
committed
[hotfix][tests] Fix testfail due to data race with after migration to Fabric8 interceptor
1 parent 4f87bc2 commit aebb9c9

File tree

2 files changed

+280
-154
lines changed

2 files changed

+280
-154
lines changed

flink-autoscaler/src/test/java/org/apache/flink/autoscaler/RestApiMetricsCollectorTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ public void testJmMetricCollection() throws Exception {
160160
(c, e) ->
161161
new StandaloneClientHAServices(
162162
miniCluster.getRestAddress().get().toString()));
163+
// wait a little to ensure data is ready
164+
Thread.sleep(500);
163165
do {
164166
var collector = new RestApiMetricsCollector<>();
165167
Map<FlinkMetric, Metric> flinkMetricMetricMap =

0 commit comments

Comments
 (0)