@@ -127,9 +127,9 @@ func compareHosts(t *testing.T, received []description.Server, expected []string
127127
128128func TestPollingSRVRecordsSpec (t * testing.T ) {
129129 for _ , uri := range []string {
130- "mongodb+srv://test1.test.build.10gen.cc/?heartbeatFrequencyMS=100 " ,
130+ "mongodb+srv://test1.test.build.10gen.cc/?heartbeatFrequencyMS=500 " ,
131131 // Test with user:pass as a regression test for GODRIVER-2620
132- "mongodb+srv://user:[email protected] /?heartbeatFrequencyMS=100 " ,
132+ "mongodb+srv://user:[email protected] /?heartbeatFrequencyMS=500 " ,
133133 } {
134134 t .Run (uri , func (t * testing.T ) {
135135 testPollingSRVRecordsSpec (t , uri )
@@ -169,7 +169,7 @@ func testPollingSRVRecordsSpec(t *testing.T, uri string) {
169169
170170func TestPollSRVRecords (t * testing.T ) {
171171 t .Run ("Not unknown or sharded topology" , func (t * testing.T ) {
172- uri := "mongodb+srv://test1.test.build.10gen.cc/?heartbeatFrequencyMS=100 "
172+ uri := "mongodb+srv://test1.test.build.10gen.cc/?heartbeatFrequencyMS=500 "
173173 cfg , err := NewConfig (options .Client ().ApplyURI (uri ), nil )
174174 require .NoError (t , err , "error constructing topology config: %v" , err )
175175
@@ -207,7 +207,7 @@ func TestPollSRVRecords(t *testing.T) {
207207
208208 })
209209 t .Run ("Failed Hostname Verification" , func (t * testing.T ) {
210- uri := "mongodb+srv://test1.test.build.10gen.cc/?heartbeatFrequencyMS=100 "
210+ uri := "mongodb+srv://test1.test.build.10gen.cc/?heartbeatFrequencyMS=500 "
211211 cfg , err := NewConfig (options .Client ().ApplyURI (uri ), nil )
212212 require .NoError (t , err , "error constructing topology config: %v" , err )
213213
@@ -234,7 +234,7 @@ func TestPollSRVRecords(t *testing.T) {
234234
235235 })
236236 t .Run ("Return to polling time" , func (t * testing.T ) {
237- uri := "mongodb+srv://test1.test.build.10gen.cc/?heartbeatFrequencyMS=100 "
237+ uri := "mongodb+srv://test1.test.build.10gen.cc/?heartbeatFrequencyMS=500 "
238238 cfg , err := NewConfig (options .Client ().ApplyURI (uri ), nil )
239239 require .NoError (t , err , "error constructing topology config: %v" , err )
240240
@@ -276,7 +276,7 @@ func TestPollingSRVRecordsLoadBalanced(t *testing.T) {
276276 }
277277
278278 t .Run ("pollingRequired is set to false" , func (t * testing.T ) {
279- topo := createLBTopology (t , "mongodb+srv://test24.test.build.10gen.cc/?heartbeatFrequencyMS=100 " )
279+ topo := createLBTopology (t , "mongodb+srv://test24.test.build.10gen.cc/?heartbeatFrequencyMS=500 " )
280280 assert .False (t , topo .pollingRequired , "expected SRV polling to not be required, but it is" )
281281 })
282282
@@ -313,7 +313,7 @@ func TestPollSRVRecordsMaxHosts(t *testing.T) {
313313 simulateSRVPoll := func (srvMaxHosts int , recordsToAdd []* net.SRV , recordsToRemove []* net.SRV ) (* Topology , func (ctx context.Context ) error ) {
314314 t .Helper ()
315315
316- uri := "mongodb+srv://test1.test.build.10gen.cc/?heartbeatFrequencyMS=100 "
316+ uri := "mongodb+srv://test1.test.build.10gen.cc/?heartbeatFrequencyMS=500 "
317317 cfg , err := NewConfig (options .Client ().ApplyURI (uri ).SetSRVMaxHosts (srvMaxHosts ), nil )
318318 require .NoError (t , err , "error constructing topology config: %v" , err )
319319
@@ -385,7 +385,7 @@ func TestPollSRVRecordsServiceName(t *testing.T) {
385385 simulateSRVPoll := func (srvServiceName string , recordsToAdd []* net.SRV , recordsToRemove []* net.SRV ) (* Topology , func (ctx context.Context ) error ) {
386386 t .Helper ()
387387
388- uri := "mongodb+srv://test22.test.build.10gen.cc/?heartbeatFrequencyMS=100 &srvServiceName=customname"
388+ uri := "mongodb+srv://test22.test.build.10gen.cc/?heartbeatFrequencyMS=500 &srvServiceName=customname"
389389 cfg , err := NewConfig (options .Client ().ApplyURI (uri ).SetSRVServiceName (srvServiceName ), nil )
390390 require .NoError (t , err , "error constructing topology config: %v" , err )
391391
0 commit comments