mirror of
https://github.com/docker/compose.git
synced 2025-07-20 12:14:41 +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")
|
assert.Check(t, found, "environment variable FOO not set")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestEnvFileAndEnv(t *testing.T) {
|
func TestEnvFileAndEnv(t *testing.T) {
|
||||||
@ -79,8 +78,14 @@ services:
|
|||||||
`)
|
`)
|
||||||
def := template.Resources["FooTaskDefinition"].(*ecs.TaskDefinition)
|
def := template.Resources["FooTaskDefinition"].(*ecs.TaskDefinition)
|
||||||
env := def.ContainerDefinitions[0].Environment
|
env := def.ContainerDefinitions[0].Environment
|
||||||
assert.Equal(t, env[0].Name, "FOO")
|
var found bool
|
||||||
assert.Equal(t, env[0].Value, "ZOT")
|
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) {
|
func TestRollingUpdateLimits(t *testing.T) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user