Skip to content

Commit a617677

Browse files
fix test name and add comment about test location
1 parent 79e3f6d commit a617677

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/integration/server-selection/server_selection.prose.operation_count.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,12 @@ describe('operationCount-based Selection Within Latency Window - Prose Test', fu
167167
});
168168

169169
it(
170-
'equally distributes operations with both hosts when requests are in parallel',
170+
'equally distributes operations with both hosts when requests are in sequence',
171171
TEST_METADATA,
172+
/**
173+
* note that this test is NOT a prose test, but it lives in this file because it uses the
174+
* same setup as the operation count prose tests
175+
*/
172176
async function () {
173177
const collection = client.db('test-db').collection('collection0');
174178

@@ -180,7 +184,6 @@ describe('operationCount-based Selection Within Latency Window - Prose Test', fu
180184
await collection.findOne({ _id: insertedId });
181185
}
182186

183-
// Step 9: Using command monitoring events, assert that each mongos was selected roughly 50% of the time (within +/- 10%).
184187
const [host1, host2] = seeds.map(seed => seed.split(':')[1]);
185188
const percentageToHost1 = (counts[host1] / n) * 100;
186189
const percentageToHost2 = (counts[host2] / n) * 100;

0 commit comments

Comments
 (0)