mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-24 16:10:46 -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 planDiags tfdiags.Diagnostics
|
||||
go func() {
|
||||
defer logging.PanicHandler()
|
||||
defer done()
|
||||
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
|
||||
|
||||
go func() {
|
||||
defer logging.PanicHandler()
|
||||
defer done()
|
||||
updated, applyDiags = tfCtx.Apply(plan, config)
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user