@@ -34,7 +34,7 @@ func TestEnvPriority(t *testing.T) {
3434 })
3535
3636 // Full options activated
37- // 1. Command Line (docker compose run --env <KEY[=VAL]>) <-- Result expected (From environment patched by --env-file )
37+ // 1. Command Line (docker compose run --env <KEY[=VAL]>) <-- Result expected (From OS Environment )
3838 // 2. Compose File (service::environment section)
3939 // 3. Compose File (service::env_file section file)
4040 // 4. Container Image ENV directive
@@ -45,7 +45,7 @@ func TestEnvPriority(t *testing.T) {
4545 "run" , "--rm" , "-e" , "WHEREAMI" , "env-compose-priority" )
4646 cmd .Env = append (cmd .Env , "WHEREAMI=shell" )
4747 res := icmd .RunCmd (cmd )
48- assert .Equal (t , strings .TrimSpace (res .Stdout ()), "override " )
48+ assert .Equal (t , strings .TrimSpace (res .Stdout ()), "shell " )
4949 })
5050
5151 // Full options activated
@@ -63,7 +63,7 @@ func TestEnvPriority(t *testing.T) {
6363 })
6464
6565 // No Compose file, all other options
66- // 1. Command Line (docker compose run --env <KEY[=VAL]>) <-- Result expected (From environment patched by --env-file )
66+ // 1. Command Line (docker compose run --env <KEY[=VAL]>) <-- Result expected (From OS Environment )
6767 // 2. Compose File (service::environment section)
6868 // 3. Compose File (service::env_file section file)
6969 // 4. Container Image ENV directive
@@ -74,7 +74,7 @@ func TestEnvPriority(t *testing.T) {
7474 "run" , "--rm" , "-e" , "WHEREAMI" , "env-compose-priority" )
7575 cmd .Env = append (cmd .Env , "WHEREAMI=shell" )
7676 res := icmd .RunCmd (cmd )
77- assert .Equal (t , strings .TrimSpace (res .Stdout ()), "override " )
77+ assert .Equal (t , strings .TrimSpace (res .Stdout ()), "shell " )
7878 })
7979
8080 // No Compose file, all other options with env variable from OS environment
0 commit comments