test(platform): tidy filesystem failure test setup

This commit is contained in:
eezd committed 2026-10-27 14:48:30 +08:00
1 parent 8343072225
commit bea53ce3c8
3 files changed
-3

No files matched your search

-1
View File
@@ -14,7 +14,6 @@ import (
) )
func TestTrashPurgeFailurePreservesMetadata(t *testing.T) { func TestTrashPurgeFailurePreservesMetadata(t *testing.T) {
for _, operation := range []string{"single", "all", "expired"} { for _, operation := range []string{"single", "all", "expired"} {
for _, blocked := range []string{"payload", "parent"} { for _, blocked := range []string{"payload", "parent"} {
t.Run(operation+"/"+blocked, func(t *testing.T) { t.Run(operation+"/"+blocked, func(t *testing.T) {
-1
View File
@@ -146,7 +146,6 @@ func TestTreeIconValidationAndCorruptMetadata(t *testing.T) {
} }
func TestTreeIconWriteFailureRollsBack(t *testing.T) { func TestTreeIconWriteFailureRollsBack(t *testing.T) {
for _, operation := range []string{"set", "move", "delete", "restore"} { for _, operation := range []string{"set", "move", "delete", "restore"} {
t.Run(operation, func(t *testing.T) { t.Run(operation, func(t *testing.T) {
v := newVault(t) v := newVault(t)
-1
View File
@@ -15,7 +15,6 @@ import (
) )
func TestUnreadableNotePreservesSnapshot(t *testing.T) { func TestUnreadableNotePreservesSnapshot(t *testing.T) {
v, err := vault.Open(t.TempDir()) v, err := vault.Open(t.TempDir())
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)