File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
driver/src/test/java/perf Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,11 @@ private void doGetVersion(ArangoDB arangoDB) {
4444 @ ParameterizedTest
4545 @ EnumSource (Protocol .class )
4646 void getVersion (Protocol protocol ) throws InterruptedException {
47- ArangoDB arangoDB = new ArangoDB .Builder ().protocol (protocol ).build ();
47+ ArangoDB arangoDB = new ArangoDB .Builder ()
48+ .host ("172.28.0.1" , 8529 )
49+ .password ("test" )
50+ .protocol (protocol )
51+ .build ();
4852 // warmup
4953 doGetVersion (arangoDB );
5054
Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ void getVersion(Protocol protocol) {
2020 System .out .println ("--- getVersion(): " + protocol );
2121 System .out .println ("-----------------------------------------" );
2222
23- ArangoDB adb = new ArangoDB .Builder ().protocol (protocol ).build ();
23+ ArangoDB adb = new ArangoDB .Builder ()
24+ .host ("172.28.0.1" , 8529 )
25+ .password ("test" )
26+ .protocol (protocol )
27+ .build ();
2428 Benchmark benchmark = new Benchmark (warmupDurationSeconds , numberOfRequests ) {
2529 @ Override
2630 protected void sendRequest () {
@@ -44,7 +48,11 @@ void getVersionWithDetails(Protocol protocol) {
4448 System .out .println ("--- getVersion w/ details: " + protocol );
4549 System .out .println ("-----------------------------------------" );
4650
47- ArangoDB adb = new ArangoDB .Builder ().protocol (protocol ).build ();
51+ ArangoDB adb = new ArangoDB .Builder ()
52+ .host ("172.28.0.1" , 8529 )
53+ .password ("test" )
54+ .protocol (protocol )
55+ .build ();
4856 Benchmark benchmark = new Benchmark (warmupDurationSeconds , numberOfRequests ) {
4957 private final Request <?> request = Request .builder ()
5058 .db (DbName .SYSTEM )
You can’t perform that action at this time.
0 commit comments