Repository navigation
Commit f46e3bf
fix(tests): isolate locale and device identity from host environment
FormatBytes used locale-sensitive interpolation ($"{val:F1}") which
produced commas instead of dots on systems with a non-English decimal
separator. Use ToString("F1", CultureInfo.InvariantCulture) so the
output is always dot-separated regardless of host locale.
OperatorConnect_FreshBootstrapDevice_StartsWithV2Signature and
OperatorConnect_SharedTokenDevice_StartsWithV3Signature passed null as
identityPath, causing the client to read the real device identity from
%APPDATA%\OpenClawTray on machines where the app is installed and
paired. On those machines _useV2Signature was computed from a live
device token, making the bootstrap assertion fail. Pass a fresh temp
directory so the tests start with no device state.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>1 parent e0a4b7c commit f46e3bf
2 files changed
Lines changed: 9 additions & 6 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
129 | | - | |
130 | | - | |
| 130 | + | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
465 | | - | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
466 | 467 | | |
467 | 468 | | |
468 | 469 | | |
469 | 470 | | |
470 | 471 | | |
471 | 472 | | |
472 | 473 | | |
473 | | - | |
474 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
475 | 477 | | |
476 | 478 | | |
477 | 479 | | |
| |||
0 commit comments