test: E2E specs leak providers and hosts, and a proxy group edit test is intermittent

Đang mở
#2,057 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Wikid82 đang làm issue này rồi.

Từ ngày 25/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

database testing

Found while enabling new E2E specs in the PR that adds a delete guard for DNS providers.

Leaks (low):

  • tests/dns-provider-crud.spec.ts:134 and :210 create "Test Manual Provider" / "Test Webhook Provider" through the UI and never delete them; one of each accumulates per run.
  • About five proxy-*.test.local hosts accumulate per run from another spec (not yet identified).

Intermittent (low): tests/proxy-groups.spec.ts:257 ("preselects the host's current group when editing") failed once in a full run because the edit dialog never opened, and then passed 4 of 4 in isolation. A growing host list from the leaks above may make it worse.

Suggested approach: delete what each test creates in an afterEach/finally, find the spec that leaks the hosts, and re-run the group spec on a clean database to confirm. The E2E tmpfs size is tracked separately in #2050.

Ngôn ngữ chính
Go
Star
17
Fork
2
Merge trung bình
1 giờ 42 phút
Pull request đã merge (30 ngày)
173

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Wikid82/Charon

Tất cả issue của Wikid82/Charon

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.