mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Fix flacky test
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
d281f6cb3e
commit
83d65c02a0
@ -64,7 +64,6 @@ services:
|
||||
}
|
||||
}
|
||||
assert.Check(t, found, "environment variable FOO not set")
|
||||
|
||||
}
|
||||
|
||||
func TestEnvFileAndEnv(t *testing.T) {
|
||||
@ -79,8 +78,14 @@ services:
|
||||
`)
|
||||
def := template.Resources["FooTaskDefinition"].(*ecs.TaskDefinition)
|
||||
env := def.ContainerDefinitions[0].Environment
|
||||
assert.Equal(t, env[0].Name, "FOO")
|
||||
assert.Equal(t, env[0].Value, "ZOT")
|
||||
var found bool
|
||||
for _, pair := range env {
|
||||
if pair.Name == "FOO" {
|
||||
assert.Equal(t, pair.Value, "ZOT")
|
||||
found = true
|
||||
}
|
||||
}
|
||||
assert.Check(t, found, "environment variable FOO not set")
|
||||
}
|
||||
|
||||
func TestRollingUpdateLimits(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user