mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 08:21:07 -06:00
testing framework: implement panic handling (#33525)
This commit is contained in:
parent
837716a703
commit
2cc81cfec6
@ -396,6 +396,7 @@ func (runner *TestRunner) execute(run *moduletest.Run, file *moduletest.File, co
|
|||||||
var plan *plans.Plan
|
var plan *plans.Plan
|
||||||
var planDiags tfdiags.Diagnostics
|
var planDiags tfdiags.Diagnostics
|
||||||
go func() {
|
go func() {
|
||||||
|
defer logging.PanicHandler()
|
||||||
defer done()
|
defer done()
|
||||||
plan, planDiags = tfCtx.Plan(config, state, opts)
|
plan, planDiags = tfCtx.Plan(config, state, opts)
|
||||||
}()
|
}()
|
||||||
@ -442,6 +443,7 @@ func (runner *TestRunner) execute(run *moduletest.Run, file *moduletest.File, co
|
|||||||
var applyDiags tfdiags.Diagnostics
|
var applyDiags tfdiags.Diagnostics
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
defer logging.PanicHandler()
|
||||||
defer done()
|
defer done()
|
||||||
updated, applyDiags = tfCtx.Apply(plan, config)
|
updated, applyDiags = tfCtx.Apply(plan, config)
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user