Skip to content

Commit

Permalink
Set initial waiting seconds to 5 to speed up acceptance tests (#15411)
Browse files Browse the repository at this point in the history
* set initial waiting seconds to 30 to speed up acceptance tests

* bump initial wait time to 120s

* set is_test to true and lower wait time to 5s
  • Loading branch information
lmossman authored Aug 8, 2022
1 parent 054cbbe commit 4443aeb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ record DestinationCdcRecordMatcher(JsonNode sourceRecord, Instant minUpdatedAt,
private static final String REPLICATION_SLOT = "airbyte_slot";
// must match publication name used in the above POSTGRES_INIT_SQL_FILE
private static final String PUBLICATION = "airbyte_publication";
private static final Integer INITIAL_WAITING_SECONDS = 5;

private static final String SOURCE_NAME = "CDC Source";
private static final String CONNECTION_NAME = "test-connection";
Expand Down Expand Up @@ -486,10 +487,12 @@ private SourceRead createCdcSource() throws ApiException {
final UUID postgresSourceDefinitionId = testHarness.getPostgresSourceDefinitionId();
final JsonNode sourceDbConfig = testHarness.getSourceDbConfig();
final Map<Object, Object> sourceDbConfigMap = Jsons.object(sourceDbConfig, Map.class);
sourceDbConfigMap.put("is_test", true);
sourceDbConfigMap.put("replication_method", ImmutableMap.builder()
.put("method", CDC_METHOD)
.put("replication_slot", REPLICATION_SLOT)
.put("publication", PUBLICATION)
.put("initial_waiting_seconds", INITIAL_WAITING_SECONDS)
.build());
LOGGER.info("final sourceDbConfigMap: {}", sourceDbConfigMap);

Expand Down

0 comments on commit 4443aeb

Please sign in to comment.