File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class database_status_tests : public ::testing::Test
4141        locator = db.locators ().begin ()->second ;
4242
4343        //  Simulate that the backend is monitorizing the domain
44+         //  NOTE: This is so F*** dangerous, please do not do it again (1)
4445        std::shared_ptr<details::Monitor> monitor = std::make_shared<details::Monitor>();
4546        details::StatisticsBackendData::get_instance ()->monitors_by_entity_ [domain->id ] = monitor;
4647
@@ -79,6 +80,13 @@ class database_status_tests : public ::testing::Test
7980                details::StatisticsBackendData::DiscoveryStatus::DISCOVERY);
8081    }
8182
83+ 
84+     void  TearDown ()
85+     {
86+         //  NOTE: This is thanks to (1) brilliant idea
87+         details::StatisticsBackendData::get_instance ()->monitors_by_entity_ .erase (domain->id );
88+     }
89+ 
8290    std::shared_ptr<Host> host;
8391    std::shared_ptr<User> user;
8492    std::shared_ptr<Process> process;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments