Skip to content

Commit

Permalink
Remove test fixed in pr mongodb#112
Browse files Browse the repository at this point in the history
  • Loading branch information
rozza committed Apr 3, 2024
1 parent d272545 commit d60d04b
Showing 1 changed file with 0 additions and 14 deletions.
Expand Up @@ -84,20 +84,6 @@ void factoriesWithSameConfigCreateSameClientsThroughCache() {
assertSame(client1, client2);
}

@Test
void factoriesWithEqualConfigCreateNotSameClientsThroughCache() {
MongoConfig config1 = MongoConfig.createConfig(CONFIG_MAP);
MongoConfig config2 = MongoConfig.createConfig(CONFIG_MAP);
DefaultMongoClientFactory factory1 = new DefaultMongoClientFactory(config1);
DefaultMongoClientFactory factory2 = new DefaultMongoClientFactory(config2);
MongoClientCache mongoClientCache = new MongoClientCache(0, 0, 100);

MongoClient client1 = mongoClientCache.acquire(factory1);
MongoClient client2 = mongoClientCache.acquire(factory2);

assertNotSame(client1, client2);
}

@Test
void factoriesWithEqualReadConfigsCreateSameClientsThroughCache() {
MongoConfig config1 = MongoConfig.readConfig(CONFIG_MAP);
Expand Down

0 comments on commit d60d04b

Please sign in to comment.