Commit 9be645d
committed
Fix Express CI tests: add directConnection=true to MongoDB URI
The Atlas CLI local deployment creates a replica set (myLocalRs1) that
advertises hostname 'mylocalrs1'. Without directConnection=true, the
MongoDB driver attempts server discovery and fails to resolve this
hostname in CI, causing all tests to fail with:
MongoServerSelectionError: getaddrinfo EAI_AGAIN mylocalrs11 parent 556d9e5 commit 9be645d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments