@@ -30,7 +30,7 @@ class TimeoutClusterTest extends ClusterTest {
30
30
@ MethodSource ("protocolProvider" )
31
31
void requestTimeout (Protocol protocol ) throws InterruptedException {
32
32
ArangoDB arangoDB = dbBuilder ()
33
- .timeout (1_000 )
33
+ .timeout (500 )
34
34
.protocol (protocol )
35
35
.build ();
36
36
@@ -41,7 +41,7 @@ void requestTimeout(Protocol protocol) throws InterruptedException {
41
41
col .truncate ();
42
42
43
43
Throwable thrown = catchThrowable (() -> arangoDB .db ()
44
- .query ("INSERT {value:sleep(2 )} INTO @@col RETURN NEW" ,
44
+ .query ("INSERT {value:sleep(1 )} INTO @@col RETURN NEW" ,
45
45
Map .class ,
46
46
Collections .singletonMap ("@col" , colName ))
47
47
);
@@ -53,7 +53,7 @@ void requestTimeout(Protocol protocol) throws InterruptedException {
53
53
54
54
arangoDB .getVersion ();
55
55
56
- Thread .sleep (2_000 );
56
+ Thread .sleep (1_000 );
57
57
assertThat (col .count ().getCount ()).isEqualTo (1 );
58
58
59
59
arangoDB .shutdown ();
@@ -71,7 +71,7 @@ void requestTimeout(Protocol protocol) throws InterruptedException {
71
71
@ MethodSource ("protocolProvider" )
72
72
void requestTimeoutAsync (Protocol protocol ) throws InterruptedException , ExecutionException {
73
73
ArangoDBAsync arangoDB = dbBuilder ()
74
- .timeout (1_000 )
74
+ .timeout (500 )
75
75
.protocol (protocol )
76
76
.build ()
77
77
.async ();
@@ -83,7 +83,7 @@ void requestTimeoutAsync(Protocol protocol) throws InterruptedException, Executi
83
83
col .truncate ().get ();
84
84
85
85
Throwable thrown = catchThrowable (() -> arangoDB .db ()
86
- .query ("INSERT {value:sleep(2 )} INTO @@col RETURN NEW" ,
86
+ .query ("INSERT {value:sleep(1 )} INTO @@col RETURN NEW" ,
87
87
Map .class ,
88
88
Collections .singletonMap ("@col" , colName )).get ()
89
89
).getCause ();
@@ -95,7 +95,7 @@ void requestTimeoutAsync(Protocol protocol) throws InterruptedException, Executi
95
95
96
96
arangoDB .getVersion ().get ();
97
97
98
- Thread .sleep (2_000 );
98
+ Thread .sleep (1_000 );
99
99
assertThat (col .count ().get ().getCount ()).isEqualTo (1 );
100
100
101
101
arangoDB .shutdown ();
0 commit comments