Run shared transport behavior tests on every platform

Aperta
#1,917 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@bghgary ci sta già lavorando.

Dal 4/11/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Ambito
testing

Direzione di ricerca

Start with Tests/UrlRequestErrorReporting.cpp in the UrlLib repository and locate the SKIP_WITHOUT_TRANSPORT_ERROR_DETAIL macro definition plus each of the six tests it guards. Split each test so the shared checks (failure status, response state, request reuse, cancellation timeout) run everywhere while only error-symbol/error-code assertions stay behind the platform guard, paying attention to MissingAppResourceReportsError being Apple-only. Then grep the test suite for remaining platform guards repeating the same pattern. Done means the shared assertions execute on Windows and the suite still passes on the other backends.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

[Filed by Copilot on behalf of @bghgary]

Several existing transport tests skip entire platforms rather than only assertions tied to platform-specific diagnostics.

In UrlRequestErrorReporting.cpp, SKIP_WITHOUT_TRANSPORT_ERROR_DETAIL skips six tests entirely on Windows. This suppresses shared status, reuse, and cancellation checks along with diagnostic assertions. For example, AbortInterruptsInFlightRequest never checks whether cancellation completes within its timeout on Windows. MissingAppResourceReportsError is separately Apple-only.

Please separate shared behavior checks from backend-specific diagnostic expectations:

  • Run failure-status, response-state, request-reuse, and cancellation checks on every supported backend.
  • Keep platform-specific error-symbol and error-code assertions separate, so unsupported diagnostics do not suppress shared checks.
  • Audit the remaining platform guards for the same pattern.

These exclusions predate the response-body fixes in PR #38; this issue tracks the broader existing coverage gap.

Lingua principale
C++
Stelle
931
Fork
169
Merge medio
2g 17h
PR unite (30g)
66

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BabylonJS/BabylonNative

Tutte le issue di BabylonJS/BabylonNative

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.