Skip to content

Commit 2de596b

Browse files
authored
test(NODE-3357): extend timeout for atlas connectivity (#2841)
1 parent a2887db commit 2de596b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/manual/atlas_connectivity.test.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
'use strict';
22
const { MongoClient } = require('../../src');
33

4+
/**
5+
* ATLAS_CONNECTIVITY env variable is JSON
6+
* Here's some typescript describing the shape:
7+
*
8+
* ```typescript
9+
* interface AtlasConnectivity {
10+
* [atlasDeployment: string]: [normalUri: string, srvUri: string]
11+
* }
12+
* ```
13+
*
14+
* It should be an object with descriptive strings about the deployment type and version (i.e. sharded_cluster_3_4)
15+
* that map to a two string tuple that are the normal URI and SRV URI, order doesn't matter, but it should be that order.
16+
*/
17+
418
describe('Atlas Connectivity', function () {
519
if (process.env.ATLAS_CONNECTIVITY == null) {
620
console.error(
@@ -23,6 +37,7 @@ describe('Atlas Connectivity', function () {
2337

2438
function makeConnectionTest(connectionString, clientOptions) {
2539
return function () {
40+
this.timeout(40000);
2641
const client = new MongoClient(connectionString, clientOptions);
2742

2843
return client

0 commit comments

Comments
 (0)