diff --git a/internal/webdav/handler_test.go b/internal/webdav/handler_test.go index d46b0be..27f111d 100644 --- a/internal/webdav/handler_test.go +++ b/internal/webdav/handler_test.go @@ -54,10 +54,10 @@ func TestPerUserIsolationAndPrefix(t *testing.T) { t.Fatalf("expected bob to get 404 for alice's file, got %d", bobRec.Code) } - // Confirm the file physically landed under dataDir/files/alice/, not - // nested under an extra files/files/... path. - if _, err := os.Stat(dir + "/files/alice/note.txt"); err != nil { - t.Fatalf("expected file at dataDir/files/alice/note.txt: %v", err) + // Confirm the file physically landed under dataDir/alice/files/, matching + // the new nested structure. + if _, err := os.Stat(dir + "/alice/files/note.txt"); err != nil { + t.Fatalf("expected file at dataDir/alice/files/note.txt: %v", err) } }