()
| 430 | metadata: { requires: { topology: 'single' } }, |
| 431 | |
| 432 | test() { |
| 433 | const options = { |
| 434 | maxPoolSize: 4, |
| 435 | notlegal: {}, |
| 436 | validateOptions: true |
| 437 | }; |
| 438 | MongoClient.connect(this.configuration.url(), options) |
| 439 | .then(() => expect.fail()) |
| 440 | .catch(err => { |
| 441 | expect(err) |
| 442 | .property('message') |
| 443 | .to.match(/options notlegal, validateoptions are not supported/); |
| 444 | }); |
| 445 | } |
| 446 | }); |
| 447 | |
| 448 | it('must respect an infinite connectTimeoutMS for the streaming protocol', { |