Skip to content

Commit eac94a4

Browse files
committed
fix
1 parent 222b57d commit eac94a4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

integration-test/src/test/java/org/apache/iotdb/pipe/it/single/IoTDBPipeOPCUAIT.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.apache.iotdb.db.it.utils.TestUtils;
2626
import org.apache.iotdb.db.pipe.sink.protocol.opcua.client.ClientRunner;
2727
import org.apache.iotdb.db.pipe.sink.protocol.opcua.client.IoTDBOpcUaClient;
28+
import org.apache.iotdb.it.env.MultiEnvFactory;
2829
import org.apache.iotdb.it.env.cluster.EnvUtils;
2930
import org.apache.iotdb.it.framework.IoTDBTestRunner;
3031
import org.apache.iotdb.itbase.category.MultiClusterIT1;
@@ -45,6 +46,7 @@
4546
import org.eclipse.milo.opcua.stack.core.types.builtin.Variant;
4647
import org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn;
4748
import org.junit.Assert;
49+
import org.junit.Before;
4850
import org.junit.Test;
4951
import org.junit.experimental.categories.Category;
5052
import org.junit.runner.RunWith;
@@ -64,6 +66,19 @@
6466
@Category({MultiClusterIT1.class})
6567
public class IoTDBPipeOPCUAIT extends AbstractPipeSingleIT {
6668

69+
@Before
70+
public void setUp() {
71+
MultiEnvFactory.createEnv(1);
72+
env = MultiEnvFactory.getEnv(0);
73+
env.getConfig()
74+
.getCommonConfig()
75+
.setAutoCreateSchemaEnabled(true)
76+
.setPipeMemoryManagementEnabled(false)
77+
.setIsPipeEnableMemoryCheck(false)
78+
.setPipeAutoSplitFullEnabled(false);
79+
env.initClusterEnvironment(1, 1);
80+
}
81+
6782
@Test
6883
public void testOPCUAServerSink() throws Exception {
6984
int tcpPort = -1;

0 commit comments

Comments
 (0)