After exiting for timeout the teardown method is not executed
Bug #904841 reported by
Charlie Poole
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Framework |
Fix Released
|
High
|
Charlie Poole | ||
NUnit V2 |
Fix Released
|
Medium
|
Charlie Poole |
Bug Description
From the NUnit-discuss list: http://
When a test times out, the teardown method is not executed. The person reporting it wants the TearDown to execute so that cleanup may be performed. This will need some investigation both for general desirability and feasibility.
Changed in nunit-3.0: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Charlie Poole (charlie.poole) |
milestone: | none → 2.9.6 |
Changed in nunit-3.0: | |
status: | Triaged → Fix Committed |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
Changed in nunit-3.0: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I have verified that teardown is executed after a timeout. There was no test for this case, so I added one.
If your own teardown is not being executed at all, it may be that the setup is hanging and causing the timeout. If setup does not complete, then teardown is not run.