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

Offen
#2,057 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@Wikid82 arbeitet bereits daran.

Seit 25.11.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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.

Vorherrschende Sprache
Go
Sterne
17
Forks
2
Ø Merge
1 Std. 42 Min.
Gemergte PRs (30 T.)
173

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Wikid82/Charon

Alle Issues in Wikid82/Charon

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.