You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it("leak issue",function(){leaky=truethrownewError("And also fail the test")})
You should get one error "And also fail the test" and another "Error: global leak detected: leaky" (or perhaps, if not both, then only one or the other). Instead you get two of the latter.
I'd guess that the error property on the failed test is being overwritten and an extra fail event emitted for that test, instead of generating a fail event associated with the test but with its own error property.
The text was updated successfully, but these errors were encountered:
ScottFreeCode
changed the title
leak detection overwrites test error
leak detection overwrites test error (OR: subsequent errors can clobber prior in report?)
Nov 7, 2017
This is probably just a specific case of a general issue with errors overwriting prior errors, see e.g. the way "second" is reported twice instead of "first" and "second" in #2906.
Run this test file with
--check-leaks
:You should get one error "And also fail the test" and another "Error: global leak detected: leaky" (or perhaps, if not both, then only one or the other). Instead you get two of the latter.
I'd guess that the error property on the failed test is being overwritten and an extra fail event emitted for that test, instead of generating a fail event associated with the test but with its own error property.
The text was updated successfully, but these errors were encountered: