DBZ-8197 Increase wait time for XStream
This commit is contained in:
parent
40899c2269
commit
ab05789a1c
@ -4457,10 +4457,13 @@ public void shouldGracefullySkipObjectBasedTables() throws Exception {
|
||||
.with(OracleConnectorConfig.TABLE_INCLUDE_LIST, "DEBEZIUM\\.DBZ5441")
|
||||
.build();
|
||||
|
||||
int waitTime = TestHelper.defaultMessageConsumerPollTimeout() * 2;
|
||||
|
||||
final LogInterceptor streamInterceptor;
|
||||
switch (TestHelper.getAdapter(config)) {
|
||||
case XSTREAM:
|
||||
streamInterceptor = new LogInterceptor("io.debezium.connector.oracle.xstream.LcrEventHandler");
|
||||
waitTime *= 2; // XStream on CI can be quite slow, double the wait time to avoid failure
|
||||
break;
|
||||
default:
|
||||
streamInterceptor = new LogInterceptor(AbstractLogMinerEventProcessor.class);
|
||||
@ -4479,7 +4482,7 @@ public void shouldGracefullySkipObjectBasedTables() throws Exception {
|
||||
connection.execute("INSERT INTO DEBEZIUM.DBZ5441 (id,lvl) values (1,1)");
|
||||
|
||||
Awaitility.await()
|
||||
.atMost(180, TimeUnit.SECONDS)
|
||||
.atMost(waitTime, TimeUnit.SECONDS)
|
||||
.until(() -> streamInterceptor.containsMessage("is not a relational table and will be skipped"));
|
||||
|
||||
assertNoRecordsToConsume();
|
||||
|
Loading…
Reference in New Issue
Block a user