Skip to content

Commit

Permalink
test: use linux image on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
majori committed Nov 15, 2024
1 parent bd10cc9 commit a9a967e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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),
Expand Down

0 comments on commit a9a967e

Please sign in to comment.