File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
integration-test/src/test/java/org/apache/iotdb/pipe/it/single Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 2525import org .apache .iotdb .db .it .utils .TestUtils ;
2626import org .apache .iotdb .db .pipe .sink .protocol .opcua .client .ClientRunner ;
2727import org .apache .iotdb .db .pipe .sink .protocol .opcua .client .IoTDBOpcUaClient ;
28+ import org .apache .iotdb .it .env .MultiEnvFactory ;
2829import org .apache .iotdb .it .env .cluster .EnvUtils ;
2930import org .apache .iotdb .it .framework .IoTDBTestRunner ;
3031import org .apache .iotdb .itbase .category .MultiClusterIT1 ;
4546import org .eclipse .milo .opcua .stack .core .types .builtin .Variant ;
4647import org .eclipse .milo .opcua .stack .core .types .enumerated .TimestampsToReturn ;
4748import org .junit .Assert ;
49+ import org .junit .Before ;
4850import org .junit .Test ;
4951import org .junit .experimental .categories .Category ;
5052import org .junit .runner .RunWith ;
6466@ Category ({MultiClusterIT1 .class })
6567public 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 ;
You can’t perform that action at this time.
0 commit comments