Reconcile reuse and inspection with native extraction
This commit is contained in:
@@ -181,7 +181,10 @@ func TestExecuteStagesBoundedCompositionUsesOnlySelectedCollaborators(t *testing
|
||||
} {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
cfg := testConfig(t)
|
||||
if test.configure != nil {
|
||||
var injected *stage.Env
|
||||
if test.stageName == "extract" {
|
||||
cfg, injected, _ = extractionLifecycleFixture(t, true)
|
||||
} else if test.configure != nil {
|
||||
test.configure(cfg)
|
||||
}
|
||||
plan := mustBoundedPlan(t, test.stageName, test.stageName)
|
||||
@@ -192,7 +195,7 @@ func TestExecuteStagesBoundedCompositionUsesOnlySelectedCollaborators(t *testing
|
||||
|
||||
var captured *stage.Env
|
||||
plan.stages = []stage.Stage{collaboratorProbeStage{name: test.stageName, captured: &captured}}
|
||||
_, err := executePlan(context.Background(), cfg, plan, RunOptions{})
|
||||
_, err := executePlan(context.Background(), cfg, plan, RunOptions{Env: injected})
|
||||
if err != nil {
|
||||
t.Fatalf("executeStages() error = %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user