Skip to content

Commit

Permalink
Try to fix flakey test
Browse files Browse the repository at this point in the history
  • Loading branch information
pluma4345 committed Mar 12, 2024
1 parent 10165e4 commit 3d54c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/31-conflicts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("config.maxRetries", () => {
const collectionName = `collection-${Date.now()}`;
let db: Database, collection: DocumentCollection<{ data: number }>;
before(async () => {
system = new Database(config);
system = new Database({ ...config, agentOptions: { maxSockets: 1_000 } });
if (Array.isArray(config.url) && config.loadBalancingStrategy !== "NONE") {
await system.acquireHostList();
}
Expand Down

0 comments on commit 3d54c4f

Please sign in to comment.