Open
Bug 1744574
Opened 3 years ago
Updated 18 days ago
Update IOUtils tests to use decorators for setup and cleanup, a la Normandy tests
Categories
(Core :: XPCOM, task, P4)
Core
XPCOM
Tracking
()
NEW
People
(Reporter: beth, Unassigned)
Details
IOUtils tests call cleanup() at the end of their tests, but if that test uses Assert and that assert fails, the test will exit before running cleanup, leaving temp files on disk.
Reporter | ||
Comment 1•3 years ago
|
||
TIL registerCleanupFunction only runs at the end of all tasks in a test, so we don't want to do this. Instead we want to wrap tests in try { ... } finally {}
Reporter | ||
Updated•2 years ago
|
Component: OS.File → IOUtils and PathUtils
Reporter | ||
Updated•2 years ago
|
Summary: Update IOUtils tests to use registerCleanupFunction → Update IOUtils tests to use decorators for setup and cleanup, a la Normandy tests
Reporter | ||
Updated•1 year ago
|
Assignee: brennie → nobody
Priority: P3 → P4
Reporter | ||
Comment 2•18 days ago
|
||
Mass move of open Toolkit :: IOUtils and PathUtils bugs to Core :: XPCOM
Component: IOUtils and PathUtils → XPCOM
Product: Toolkit → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•