Browse code

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 authored on 2020/10/08 07:27:59
Showing 1 changed files
... ...
@@ -91,6 +91,7 @@ func CreateInRegistry(ctx context.Context, repo string, auth *types.AuthConfig,
91 91
 	}
92 92
 
93 93
 	var cfg Config
94
+	cfg.PluginConfig = &types.PluginConfig{}
94 95
 	for _, o := range opts {
95 96
 		o(&cfg)
96 97
 	}