From a9a967ea8038f0f34577d67938cb10683c52fbcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Kivim=C3=A4ki?= Date: Fri, 15 Nov 2024 12:24:58 +0200 Subject: [PATCH] test: use linux image on Windows --- test/main_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/main_test.go b/test/main_test.go index c9db8362..63031180 100644 --- a/test/main_test.go +++ b/test/main_test.go @@ -335,7 +335,7 @@ func iRemoveFileFromTheRecipe(ctx context.Context, filename, recipeName string) } func aLocalOCIRegistry(ctx context.Context) (context.Context, error) { - resource, err := createLocalRegistry(&dockertest.RunOptions{Repository: "registry", Tag: "2"}) + resource, err := createLocalRegistry(&dockertest.RunOptions{Repository: "registry", Tag: "2", Platform: "linux/amd64"}) if err != nil { return ctx, err } @@ -360,6 +360,7 @@ func aLocalOCIRegistryWithAuth(ctx context.Context) (context.Context, error) { resource, err := createLocalRegistry(&dockertest.RunOptions{ Repository: "registry", Tag: "2", + Platform: "linux/amd64", Env: []string{ "REGISTRY_AUTH_HTPASSWD_REALM=jalapeno-test-realm", fmt.Sprintf("REGISTRY_AUTH_HTPASSWD_PATH=/auth/%s", HTPASSWD_FILENAME),