Skip to content

Commit 54782f6

Browse files
mboersmaGabriel Monroy
authored andcommitted
fix(tests): improve functional test setup logic
1 parent e9cc776 commit 54782f6

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ test-unit: setup-venv test-style
5959
venv/bin/python manage.py test --noinput api
6060

6161
test-functional:
62-
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd
63-
@docker history deis/test-postgresql >/dev/null 2>&1 || docker pull deis/test-postgresql
64-
GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v -timeout 20m ./tests/...
62+
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
63+
@docker history deis/test-postgresql >/dev/null 2>&1 || docker pull deis/test-postgresql:latest
64+
GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v ./tests/...

tests/controller_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ func TestController(t *testing.T) {
3333
defer cli.CmdRm("-f", etcdName)
3434
handler := etcdutils.InitEtcd(setdir, setkeys, etcdPort)
3535
etcdutils.PublishEtcd(t, handler)
36-
cli.CmdRm("-f", "deis-test-database-"+tag)
3736
mock.RunMockDatabase(t, tag, etcdPort, utils.RandomPort())
3837
defer cli.CmdRm("-f", "deis-test-database-"+tag)
3938
host, port := utils.HostAddress(), utils.RandomPort()

0 commit comments

Comments
 (0)