diff --git a/bake/bake_test.go b/bake/bake_test.go index 9989daf16e7..432906a7c30 100644 --- a/bake/bake_test.go +++ b/bake/bake_test.go @@ -158,7 +158,8 @@ target "webapp" { t.Setenv("BAR", "bar") m, _, err := ReadTargets(ctx, []File{fp}, []string{"webapp"}, []string{"webapp.secrets=id=BAR,env=BAR"}, nil, &EntitlementConf{}) require.NoError(t, err) - require.Len(t, m["webapp"].Secrets, 2) + require.Len(t, m["webapp"].Secrets, 1) + require.Equal(t, "BAR", m["webapp"].Secrets[0].ID) }) t.Run("PatternOverride", func(t *testing.T) {