Commit bfacc3b
committed
test(kiro): clear the platform store between seeds, not just the macOS one
Second ubuntu failure from the same lidge-jun#718 family, surfaced by the first fix
turning five failures into one.
`inspectKiroCliSqlite distinguishes token_missing and invalid_json` seeds a
database, asserts, then re-seeds to exercise the invalid-JSON branch. Its
mid-test cleanup removed only `$tmp/Library`, which is the macOS store. On
Linux the database lives at `.local/share/kiro-cli`, so it survived and the
second seed hit `SQLiteError: table auth_kv already exists`.
Removing `kiroCliDbDir()` instead follows the platform, exactly as the seeding
side already did. Confirmed the asymmetry: a Library-only removal covers the
darwin store and neither the win32 nor the linux one.
Gates: tsc clean; kiro-oauth + kiro-windows-cli-db-path 57 pass 0 fail.1 parent 8f499a4 commit bfacc3b
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
657 | | - | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
658 | 661 | | |
659 | 662 | | |
660 | 663 | | |
| |||
0 commit comments