Commit ff9daa2
tests: make UserConfig unit tests concurrency-safe with unique tempiles (#11759)
* tests: make UserConfig unit tests concurrency-safe with unique temp files (#26)
tests: use unique temp files in UserConfig bracketTest
Agent-Logs-Url: https://github.com/ulysses4ever/cabal/sessions/043e3696-3cda-43aa-aa50-e483ec531d13
Co-authored-by: ulysses4ever <6832600+ulysses4ever@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ulysses4ever <6832600+ulysses4ever@users.noreply.github.com>
* Use `writeFileAtomic` in `Distribution.Client.Config`
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ulysses4ever <6832600+ulysses4ever@users.noreply.github.com>
* Put renameFile back
* Import replicateM in UserConfig.hs
* Remove concurrentUpdateConfig test case
* fixup! unused imports
---------
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ulysses4ever <6832600+ulysses4ever@users.noreply.github.com>1 parent f444d1b commit ff9daa2
2 files changed
Lines changed: 11 additions & 6 deletions
File tree
- cabal-install
- src/Distribution/Client
- tests/UnitTests/Distribution/Client
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| 212 | + | |
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
| |||
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
236 | | - | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
1078 | 1079 | | |
1079 | 1080 | | |
1080 | 1081 | | |
1081 | | - | |
1082 | 1082 | | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
| |||
0 commit comments