@@ -83,7 +83,6 @@ TEST_CASE("EngineInfoContainerCoordinator", "[aql][cluster][coordinator]") {
83
83
// 6. Assert (engine->root() != nullptr)
84
84
// 7. For all but the first:
85
85
// 1. queryRegistry->insert(_id, query, 600.0);
86
- // 2. queryIds.emplace(idOfRemote/dbname, _id);
87
86
// 3. query->engine();
88
87
89
88
SECTION (" it should create an ExecutionEngine for the first snippet" ) {
@@ -302,18 +301,10 @@ TEST_CASE("EngineInfoContainerCoordinator", "[aql][cluster][coordinator]") {
302
301
REQUIRE (engine != nullptr );
303
302
REQUIRE (engine == &myEngine);
304
303
305
- // The first engine should not be stored
306
- // It is not added to the registry
307
- // The second should be
308
- REQUIRE (!queryIds.empty ());
309
304
// The second engine needs a generated id
310
305
REQUIRE (secondId != 0 );
311
-
312
- // It is stored in the mapping
8000
313
- std::string secIdString = arangodb::basics::StringUtils::itoa (secondId);
314
- std::string remIdString = arangodb::basics::StringUtils::itoa (remoteId) + " /" + dbname;
315
- REQUIRE (queryIds.find (remIdString) != queryIds.end ());
316
- REQUIRE (queryIds[remIdString] == secIdString);
306
+ // We do not add anything to the ids
307
+ REQUIRE (queryIds.empty ());
317
308
318
309
// Validate that the query is wired up with the engine
319
310
fakeit::Verify (Method (mockQuery, setEngine)).Exactly (1 );
@@ -533,23 +524,8 @@ TEST_CASE("EngineInfoContainerCoordinator", "[aql][cluster][coordinator]") {
533
524
ExecutionEngine* engine = result.engine ();
534
525
REQUIRE (engine != nullptr );
535
526
REQUIRE (engine == &myEngine);
536
-
537
- // The first engine should not be stored
538
- // It is not added to the registry
539
- // The other two should be
540
- REQUIRE (queryIds.size () == 2 );
541
-
542
- // First (A) is stored in the mapping
543
- std::string secIdString = arangodb::basics::StringUtils::itoa (secondId);
544
- std::string remIdString = arangodb::basics::StringUtils::itoa (remoteId) + " /" + dbname;
545
- REQUIRE (queryIds.find (remIdString) != queryIds.end ());
546
- REQUIRE (queryIds[remIdString] == secIdString);
547
-
548
- // Second (B) is stored in the mapping
549
- std::string thirdIdString = arangodb::basics::StringUtils::itoa (thirdId);
550
- std::string secRemIdString = arangodb::basics::StringUtils::itoa (secondRemoteId) + " /" + dbname;
551
- REQUIRE (queryIds.find (secRemIdString) != queryIds.end ());
552
- REQUIRE (queryIds[secRemIdString] == thirdIdString);
527
+ // We do not add anything to the ids
528
+ REQUIRE (queryIds.empty ());
553
529
554
530
// Validate that the query is wired up with the engine
555
531
fakeit::Verify (Method (mockQuery, setEngine)).Exactly (1 );
0 commit comments