Skip to content

Commit c835e02

Browse files
committed
modify timeout for test
1 parent edd5ea8 commit c835e02

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/test/java/com/aliyun/openservices/ots/integration/ConditionalUpdateTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public void testTransactionalUpdate() throws Exception {
210210
boolean success = putRow(23, "Col1", ColumnValue.fromLong(0), null);
211211
assertTrue(success);
212212

213-
int threadNum = 100;
213+
int threadNum = 20;
214214
List<DoTxn> runnables = new ArrayList<DoTxn>();
215215
List<Thread> threads = new ArrayList<Thread>();
216216

src/test/java/com/aliyun/openservices/ots/integration/OTSClientFactory.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ public static OTS createOTSClient() {
2020

2121
public static OTS createOTSClient(ServiceSettings ss){
2222
ClientConfiguration config = new ClientConfiguration();
23-
config.setConnectionTimeoutInMillisecond( 30 * 1000);
24-
config.setSocketTimeoutInMillisecond(30 * 1000);
23+
config.setConnectionTimeoutInMillisecond(60 * 1000);
24+
config.setSocketTimeoutInMillisecond(60 * 1000);
25+
config.setRetryThreadCount(3);
26+
config.setIoThreadCount(8);
27+
config.setMaxConnections(50);
2528

2629
return createOTSClient(ss, config);
2730
}

0 commit comments

Comments
 (0)