Repository navigation
Commit 9c62951
committed
fix: silently skip unreadable .env file in loadDotEnv()
The loadDotEnv() method now checks if the .env file exists and is
readable before attempting to load it. This prevents a fatal error
when tests run in separate processes (e.g. with @RunInSeparateProcess)
where the .env file may not be accessible.
Fixes testHeaderOverride error in ResponseSendTest.1 parent b635434 commit 9c62951
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
| |||
0 commit comments