csnover/TraceKit

Fix flakey tests

Open

#77 aperta il 8 apr 2020

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (174 fork)batch import
bughelp wanted

Metriche repository

Star
 (1017 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

There are five flakey tests that have to do with ensuring the window.onerror is called and works properly. This needs to be mocked or figure out why the test occasionally hangs.

      - should pass undefined:undefined...
log: window.onerror(undefined, undefined, 1337, undefined)

log: matches test message and line number
       X should pass undefined:undefined
         Error: Timeout - Async function did not complete within 5000ms (set by jasmine.DEFAULT_TIMEOUT_INTERVAL) (1)
>> Error: Timeout - Async function did not complete within 5000ms (set by jasmine.DEFAULT_TIMEOUT_INTERVAL) Error: Timeout - Async function did not complete within 5000ms (set by jasmine.DEFAULT_TIMEOUT_INTERVAL)
>>     at <Jasmine>
     when no 5th argument (error object)

Guida contributor