[v9.5.x] Licensing: Pass func to update env variables when starting plugin (#74681)

* Licensing: Pass func to update env variables when starting plugin (#74620)

(cherry picked from commit 5e0b20266e)
This commit is contained in:
lean.dev
2023-09-13 10:12:23 -03:00
committed by GitHub
parent cc10c645d6
commit 563bd4a653
6 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -312,7 +312,7 @@ func NewFakeBackendProcessProvider() *FakeBackendProcessProvider {
func (pr *FakeBackendProcessProvider) BackendFactory(_ context.Context, p *plugins.Plugin) backendplugin.PluginFactoryFunc {
pr.Requested[p.ID]++
return func(pluginID string, _ log.Logger, _ []string) (backendplugin.Plugin, error) {
return func(pluginID string, _ log.Logger, _ func() []string) (backendplugin.Plugin, error) {
pr.Invoked[pluginID]++
return &FakePluginClient{}, nil
}