Commit 65f45fb
committed
fix: add tearDown to clear event dispatcher after each test
- Add tearDown() method to ActiveRecordEdgeCasesTests to always clear event dispatcher
- Prevents state leakage when testEventsWithDispatcherThrowingException throws exception
- Ensures clean state for all subsequent tests
- Fixes 28 failing tests in GitHub Actions1 parent 5ec84a0 commit 65f45fb
File tree
1 file changed
+10
-0
lines changed1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
| |||
0 commit comments