mirror of
https://github.com/apache/druid.git
synced 2025-02-25 04:16:07 +00:00
attempt to fix transient tests again
This commit is contained in:
parent
b68265399c
commit
ca46f1d40c
@ -408,15 +408,17 @@ public class TestKafkaExtractionCluster
|
|||||||
)
|
)
|
||||||
throws InterruptedException
|
throws InterruptedException
|
||||||
{
|
{
|
||||||
final Function<String, String> extractionFn = lookup.get(namespace);
|
Function<String, String> extractionFn = lookup.get(namespace);
|
||||||
|
|
||||||
if (expected == null) {
|
if (expected == null) {
|
||||||
while (extractionFn.apply(key) != null) {
|
while (extractionFn.apply(key) != null) {
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
|
extractionFn = lookup.get(namespace);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
while (!expected.equals(extractionFn.apply(key))) {
|
while (!expected.equals(extractionFn.apply(key))) {
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
|
extractionFn = lookup.get(namespace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -431,10 +433,11 @@ public class TestKafkaExtractionCluster
|
|||||||
)
|
)
|
||||||
throws InterruptedException
|
throws InterruptedException
|
||||||
{
|
{
|
||||||
final Function<String, List<String>> extractionFn = lookup.get(namespace);
|
Function<String, List<String>> extractionFn = lookup.get(namespace);
|
||||||
|
|
||||||
while (!extractionFn.apply(key).equals(expected)) {
|
while (!extractionFn.apply(key).equals(expected)) {
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
|
extractionFn = lookup.get(namespace);
|
||||||
}
|
}
|
||||||
|
|
||||||
Assert.assertEquals("update check", expected, extractionFn.apply(key));
|
Assert.assertEquals("update check", expected, extractionFn.apply(key));
|
||||||
|
@ -486,6 +486,7 @@ public class JDBCExtractionNamespaceTest
|
|||||||
// rely on test timeout to break out of this loop
|
// rely on test timeout to break out of this loop
|
||||||
while (!extractionFn.apply(key).equals(expected)) {
|
while (!extractionFn.apply(key).equals(expected)) {
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
|
extractionFn = fnCache.get(namespace);
|
||||||
}
|
}
|
||||||
|
|
||||||
Assert.assertEquals(
|
Assert.assertEquals(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user