Commit f684d87
committed
test: Improve database cleanup in JVM UI tests
- Update `AbstractNavigationTest` and `DesktopUiTests` to properly delete SQLite auxiliary files (`-wal`, `-shm`, and `-journal`) alongside the main database file during test setup.
- Refactor the deletion logic in `AbstractNavigationTest` to use a more idiomatic Kotlin sequence for file operations.1 parent bc51f17 commit f684d87
File tree
2 files changed
+9
-3
lines changed- app/desktop/src/jvmTest/kotlin/com/softartdev/notedelight/ui
- ui/test-jvm/src/main/kotlin/com/softartdev/notedelight/ui
2 files changed
+9
-3
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
122 | | - | |
| 126 | + | |
0 commit comments