Commit dde020e
committed
Replace manual env var management with t.Setenv in Maven tests
- Replace originalHome pattern with t.Setenv in TestNewSettingsXmlManager
- Replace originalHome pattern with t.Setenv in TestConfigureArtifactoryMirror_NoCredentials
- Eliminates ignored errors from os.Setenv calls
- Provides automatic cleanup and better error handling
- Reduces code from 5 lines to 1 line per test function1 parent 88532bb commit dde020e
1 file changed
+2
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 29 | + | |
34 | 30 | | |
35 | 31 | | |
36 | 32 | | |
| |||
309 | 305 | | |
310 | 306 | | |
311 | 307 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
| 308 | + | |
317 | 309 | | |
318 | 310 | | |
319 | 311 | | |
| |||
0 commit comments