Skip to content

Commit

Permalink
fix manifest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
csquared committed Jan 27, 2016
1 parent a5288d8 commit bbc7f12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/manifest/manifest.go
Expand Up @@ -283,6 +283,8 @@ func (me *ManifestEntry) ResolvedEnvironment(m *Manifest) ([]string, error) {
r = append([]string{env}, r...)
}

sort.Strings(r)

return r, nil
}

Expand Down
2 changes: 1 addition & 1 deletion api/manifest/manifest_test.go
Expand Up @@ -131,7 +131,7 @@ func TestRun(t *testing.T) {
stdout, stderr := testRun(m, "compose")

cases := Cases{
{stdout, fmt.Sprintf("\x1b[36mpostgres |\x1b[0m running: docker run -i --name compose-postgres -p 5432:5432 compose/postgres\n\x1b[33mweb |\x1b[0m running: docker run -i --name compose-web -e POSTGRES_URL=tcp://1.1.1.1:5432 -p 5000:3000 -v %s:/app compose/web\n", destDir)},
{stdout, fmt.Sprintf("\x1b[36mpostgres |\x1b[0m running: docker run -i --name compose-postgres -p 5432:5432 compose/postgres\n\x1b[33mweb |\x1b[0m running: docker run -i --name compose-web -e POSTGRES_HOST=1.1.1.1 -e POSTGRES_PASSWORD= -e POSTGRES_PATH= -e POSTGRES_PORT=5432 -e POSTGRES_SCHEME=tcp -e POSTGRES_URL=tcp://1.1.1.1:5432 -e POSTGRES_USERNAME= -p 5000:3000 -v %s:/app compose/web\n", destDir)},
{stderr, ""},
}

Expand Down

0 comments on commit bbc7f12

Please sign in to comment.