Repository navigation
Commit ca208a2
committed
test(file-safety)(Zoo-Code-Org#1918 u159): compare the staging parent on the footing the writer resolves
The windows arm of platform-unit-test fails on one row at fcd9500:
services/file-safety/__tests__/safeWriteText.stagingDacl.spec.ts:226 compared
path.dirname(observation.stagingDirAtNarrow) -- a name the writer resolved -- with the fixture
parent's unresolved spelling. The runner hands os.tmpdir() in its 8.3 short form
(C:\Users\RUNNER~1\... where the resolved path reads C:\Users\runneradmin\...), so the row was
deciding a directory question by a spelling question. Locally the same row reddens under a
mis-cased TEMP and passes under a canonical one, with and without the change below.
The assertion now reads both sides through realpathSync.native, the OS-level resolution whose
output the writer's canonicalization reports on Windows, so the row states which directory
holds the staging directory instead of which spelling each side arrived in. Six comment lines
added, one executable line changed in place; nothing outside __tests__ moved.1 parent fcd9500 commit ca208a2
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
227 | 234 | | |
228 | 235 | | |
229 | 236 | | |
| |||
0 commit comments