@@ -68,26 +68,21 @@ func TestServicePortRange_ReturnsExpectedPorts(t *testing.T) {
6868}
6969
7070func TestForwardCIEnvVariable (t * testing.T ) {
71- originalCI := os .Getenv ("CI" )
72- defer os .Setenv ("CI" , originalCI )
73-
7471 tests := []struct {
75- name string
76- ciValue string
77- wantCI bool
78- wantCIVals []string
72+ name string
73+ ciValue string
74+ wantCI bool
7975 }{
80- {"CI=true" , "true" , true , [] string { "true" } },
81- {"CI=1" , "1" , true , [] string { "1" } },
82- {"CI=false" , "false" , true , [] string { "false" } },
83- {"CI unset" , "" , false , nil },
76+ {"CI=true" , "true" , true },
77+ {"CI=1" , "1" , true },
78+ {"CI=false" , "false" , true },
79+ {"CI unset" , "" , false },
8480 }
8581
8682 for _ , tt := range tests {
8783 t .Run (tt .name , func (t * testing.T ) {
88- os .Setenv ("CI" , tt .ciValue )
84+ t .Setenv ("CI" , tt .ciValue )
8985
90- // Simulate the env building logic from start.go:136-139
9186 env := []string {"LOCALSTACK_AUTH_TOKEN=test" }
9287 if ci := os .Getenv ("CI" ); ci != "" {
9388 env = append (env , "CI=" + ci )
0 commit comments