4949import com .arangodb .entity .AqlParseEntity ;
5050import com .arangodb .entity .AqlParseEntity .AstNode ;
5151import com .arangodb .entity .ArangoDBVersion ;
52- import com .arangodb .entity .ArangoDBRole ;
5352import com .arangodb .entity .BaseDocument ;
5453import com .arangodb .entity .BaseEdgeDocument ;
5554import com .arangodb .entity .CollectionEntity ;
6261import com .arangodb .entity .QueryCachePropertiesEntity .CacheMode ;
6362import com .arangodb .entity .QueryEntity ;
6463import com .arangodb .entity .QueryTrackingPropertiesEntity ;
64+ import com .arangodb .entity .ServerRole ;
6565import com .arangodb .entity .TraversalEntity ;
6666import com .arangodb .model .AqlFunctionDeleteOptions ;
6767import com .arangodb .model .AqlQueryOptions ;
@@ -125,9 +125,9 @@ public void deleteCollection() {
125125
126126 @ Test
127127 public void deleteSystemCollection () {
128- if (db .getRole (). getRole () == "COORDINATOR" ) {
129- return ;
130- }
128+ if (arangoDB .getRole () != ServerRole . SINGLE ) {
129+ return ;
130+ }
131131 final String name = "_system_test" ;
132132 db .createCollection (name , new CollectionCreateOptions ().isSystem (true ));
133133 db .collection (name ).drop (true );
@@ -140,9 +140,9 @@ public void deleteSystemCollection() {
140140
141141 @ Test
142142 public void deleteSystemCollectionFail () {
143- if (db .getRole (). getRole () == "COORDINATOR" ) {
144- return ;
145- }
143+ if (arangoDB .getRole () != ServerRole . SINGLE ) {
144+ return ;
145+ }
146146 final String name = "_system_test" ;
147147 db .createCollection (name , new CollectionCreateOptions ().isSystem (true ));
148148 try {
0 commit comments