@@ -483,10 +483,8 @@ health:
483483 },
484484 }
485485 for _ , flavor := range adapterRuntimeFlavors () {
486- flavor := flavor
487486 t .Run (string (flavor ), func (t * testing.T ) {
488487 for _ , tc := range cases {
489- tc := tc
490488 t .Run (tc .name , func (t * testing.T ) {
491489 full , runtime := loadParityPairForFlavor (t , tc .args , lookupEnvMap (tc .env ), flavor )
492490 assertSharedRuntimeParity (t , full , runtime )
@@ -510,10 +508,8 @@ func TestFullAndRuntimeAcceptDefaultEquivalentFullOnlyEnvironment(t *testing.T)
510508 {name : "HARPOON_CAPTURE_PAYLOADS" , value : "false" },
511509 }
512510 for _ , flavor := range adapterRuntimeFlavors () {
513- flavor := flavor
514511 t .Run (string (flavor ), func (t * testing.T ) {
515512 for _ , tc := range cases {
516- tc := tc
517513 t .Run (tc .name + "=" + tc .value , func (t * testing.T ) {
518514 args := []string {
519515 "--control-plane.tunnel-id" , adapterTestTunnelID ,
@@ -563,7 +559,6 @@ func TestFullAndRuntimeSharedProductionInputsParity(t *testing.T) {
563559 "HARPOON_PROXY" : "http://harpoon-proxy.example.invalid:8080" ,
564560 })
565561 for _ , flavor := range adapterRuntimeFlavors () {
566- flavor := flavor
567562 t .Run (string (flavor ), func (t * testing.T ) {
568563 full , runtime := loadParityPairForFlavor (t , args , lookup , flavor )
569564 assertSharedRuntimeParity (t , full , runtime )
@@ -614,7 +609,6 @@ process:
614609 pid_file: relative/client.pid
615610` )
616611 for _ , flavor := range adapterRuntimeFlavors () {
617- flavor := flavor
618612 t .Run (string (flavor ), func (t * testing.T ) {
619613 full , runtime := loadParityPairForFlavor (t , []string {"--config" , profile }, lookupEnvMap (nil ), flavor )
620614 assertSharedRuntimeParity (t , full , runtime )
@@ -635,7 +629,6 @@ func TestFullAndRuntimeFlavorsPreserveExactProfileBytes(t *testing.T) {
635629 lookup := lookupEnvMap (map [string ]string {"CONTROL_PLANE_API_KEY" : adapterTestAPIKey })
636630
637631 for _ , flavor := range adapterRuntimeFlavors () {
638- flavor := flavor
639632 t .Run (string (flavor ), func (t * testing.T ) {
640633 full , runtime := loadParityPairForFlavor (t , []string {"--config" , profile }, lookup , flavor )
641634 assertSharedRuntimeParity (t , full , runtime )
@@ -854,15 +847,13 @@ func TestFullAndRuntimeFlavorsSharedEnvironmentParity(t *testing.T) {
854847
855848 covered := make (map [string ]struct {})
856849 for _ , tc := range cases {
857- tc := tc
858850 for name := range tc .env {
859851 if adapterSharedEnvironmentName (name ) {
860852 covered [name ] = struct {}{}
861853 }
862854 }
863855 t .Run (tc .name , func (t * testing.T ) {
864856 for _ , flavor := range adapterRuntimeFlavors () {
865- flavor := flavor
866857 t .Run (string (flavor ), func (t * testing.T ) {
867858 full , runtime := loadParityPairForFlavor (t , nil , lookupEnvMap (tc .env ), flavor )
868859 assertSharedRuntimeParity (t , full , runtime )
@@ -904,7 +895,6 @@ func TestFullAndRuntimeStandardProxyEnvironmentDetectionParity(t *testing.T) {
904895
905896 covered := make (map [string ]struct {}, len (adapterStandardProxyEnvironmentVariables ))
906897 for _ , testCase := range testCases {
907- testCase := testCase
908898 for name := range testCase .env {
909899 if adapterStandardProxyEnvironmentName (name ) {
910900 covered [name ] = struct {}{}
@@ -978,7 +968,6 @@ proxy:
978968 args := []string {"--config" , profile }
979969 lookup := lookupEnvMap (map [string ]string {"CONTROL_PLANE_API_KEY" : adapterTestAPIKey })
980970 for _ , flavor := range adapterRuntimeFlavors () {
981- flavor := flavor
982971 t .Run (string (flavor ), func (t * testing.T ) {
983972 full , runtime := loadParityPairForFlavor (t , args , lookup , flavor )
984973 assertSharedRuntimeParity (t , full , runtime )
0 commit comments