Browse Source

testing: Init plugin config when for tests

This fixes a panic when running this test for me locally.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Brian Goff 4 năm trước cách đây
mục cha
commit
f6f294bd83
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      testutil/fixtures/plugin/plugin.go

+ 1 - 0
testutil/fixtures/plugin/plugin.go

@@ -91,6 +91,7 @@ func CreateInRegistry(ctx context.Context, repo string, auth *types.AuthConfig,
 	}
 
 	var cfg Config
+	cfg.PluginConfig = &types.PluginConfig{}
 	for _, o := range opts {
 		o(&cfg)
 	}