Commit 59bc751
CurrentTreeConstructionNodeReport: fix for nested container nodes
In the following tree, the code cleaning up after the inner container node set
a nil current construction node report, causing
CurrentTreeConstructionNodeReport to panic with "CurrentConstructionNodeReport
may only be called during construction of the spec tree" when called by the
transformer for the following It:
var _ = Describe("outer", func() {
Context("inner", func() {
...
})
It("works", func() { ... })
})
The fix is to restore the old value instead of setting to nil.1 parent f331739 commit 59bc751
2 files changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2119 | 2119 | | |
2120 | 2120 | | |
2121 | 2121 | | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
2122 | 2140 | | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
2123 | 2144 | | |
2124 | 2145 | | |
2125 | 2146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
211 | 214 | | |
212 | 215 | | |
213 | | - | |
| 216 | + | |
214 | 217 | | |
215 | 218 | | |
216 | 219 | | |
| |||
0 commit comments