Skip to content

Commit 040c6b3

Browse files
committed
Pipe: Fix IT
1 parent 61c61ec commit 040c6b3

File tree

2 files changed

+2
-30
lines changed

2 files changed

+2
-30
lines changed

integration-test/src/test/java/org/apache/iotdb/pipe/it/dual/tablemodel/manual/basic/IoTDBPipeProtocolIT.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,6 @@ public void testAsyncConnectorUseNodeUrls() throws Exception {
361361
doTestUseNodeUrls(BuiltinPipePlugin.IOTDB_THRIFT_ASYNC_CONNECTOR.getPipePluginName());
362362
}
363363

364-
@Test
365-
public void testAirGapConnectorUseNodeUrls() throws Exception {
366-
doTestUseNodeUrls(BuiltinPipePlugin.IOTDB_AIR_GAP_CONNECTOR.getPipePluginName());
367-
}
368-
369364
private void doTestUseNodeUrls(String connectorName) throws Exception {
370365
senderEnv
371366
.getConfig()
@@ -407,16 +402,7 @@ private void doTestUseNodeUrls(String connectorName) throws Exception {
407402

408403
boolean insertResult = true;
409404
for (final DataNodeWrapper wrapper : receiverEnv.getDataNodeWrapperList()) {
410-
if (connectorName.equals(BuiltinPipePlugin.IOTDB_AIR_GAP_CONNECTOR.getPipePluginName())) {
411-
// Use default port for convenience
412-
nodeUrlsBuilder
413-
.append(wrapper.getIp())
414-
.append(":")
415-
.append(wrapper.getPipeAirGapReceiverPort())
416-
.append(",");
417-
} else {
418-
nodeUrlsBuilder.append(wrapper.getIpAndPortString()).append(",");
419-
}
405+
nodeUrlsBuilder.append(wrapper.getIpAndPortString()).append(",");
420406
}
421407

422408
try (final SyncConfigNodeIServiceClient client =

integration-test/src/test/java/org/apache/iotdb/pipe/it/dual/treemodel/auto/basic/IoTDBPipeProtocolIT.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,6 @@ public void testAsyncConnectorUseNodeUrls() throws Exception {
344344
doTestUseNodeUrls(BuiltinPipePlugin.IOTDB_THRIFT_ASYNC_CONNECTOR.getPipePluginName());
345345
}
346346

347-
@Test
348-
public void testAirGapConnectorUseNodeUrls() throws Exception {
349-
doTestUseNodeUrls(BuiltinPipePlugin.IOTDB_AIR_GAP_CONNECTOR.getPipePluginName());
350-
}
351-
352347
private void doTestUseNodeUrls(String connectorName) throws Exception {
353348
senderEnv
354349
.getConfig()
@@ -383,16 +378,7 @@ private void doTestUseNodeUrls(String connectorName) throws Exception {
383378

384379
final StringBuilder nodeUrlsBuilder = new StringBuilder();
385380
for (final DataNodeWrapper wrapper : receiverEnv.getDataNodeWrapperList()) {
386-
if (connectorName.equals(BuiltinPipePlugin.IOTDB_AIR_GAP_CONNECTOR.getPipePluginName())) {
387-
// Use default port for convenience
388-
nodeUrlsBuilder
389-
.append(wrapper.getIp())
390-
.append(":")
391-
.append(wrapper.getPipeAirGapReceiverPort())
392-
.append(",");
393-
} else {
394-
nodeUrlsBuilder.append(wrapper.getIpAndPortString()).append(",");
395-
}
381+
nodeUrlsBuilder.append(wrapper.getIpAndPortString()).append(",");
396382
}
397383

398384
try (final SyncConfigNodeIServiceClient client =

0 commit comments

Comments
 (0)