diff --git a/pkg/build/test.go b/pkg/build/test.go index 1ec06d2c3..d2c4ae618 100644 --- a/pkg/build/test.go +++ b/pkg/build/test.go @@ -559,7 +559,7 @@ func (t *Test) TestPackage(ctx context.Context) error { } } - cfg, err := t.buildWorkspaceConfig(ctx, imgRef, pkg.Name, t.Configuration.Environment.Environment) + cfg, err := t.buildWorkspaceConfig(ctx, imgRef, pkg.Name, t.Configuration.Test.Environment.Environment) if err != nil { return fmt.Errorf("unable to build workspace config: %w", err) }