@tomcaridi wrote:
Hi all, I've been doing some research but haven't found any solutions to this when trying to run Make Test in the dev environment. Below is the full error.
Thanks in advance for any help!
godep: WARNING: Go version (go1.6) & $GO15VENDOREXPERIMENT= wants to enable the vendor experiment, but disabling because a Godep workspace (Godeps/_workspace) exists
=== RUN TestGetLogs
[2016/03/21 11:50:50 EDT] [INFO] Loaded system translations for 'en' from '/Users/tomcaridi/go/src/github.com/mattermost/platform/i18n/en.json'
[2016/03/21 11:50:50 EDT] [INFO] Server is initializing...
[2016/03/21 11:50:50 EDT] [INFO] Pinging sql master database
[2016/03/21 11:50:50 EDT] [CRIT] Failed to ping db err:dial tcp: lookup dockerhost: no such host
--- FAIL: TestGetLogs (1.09s)
panic: Failed to open sql connection dial tcp: lookup dockerhost: no such host [recovered]
panic: Failed to open sql connection dial tcp: lookup dockerhost: no such hostgoroutine 7 [running]:
panic(0x7c94a0, 0xc8202aee30)
/usr/local/Cellar/go/1.6/libexec/src/runtime/panic.go:464 +0x3e6
testing.tRunner.func1(0xc8200835f0)
/usr/local/Cellar/go/1.6/libexec/src/testing/testing.go:467 +0x192
panic(0x7c94a0, 0xc8202aee30)
/usr/local/Cellar/go/1.6/libexec/src/runtime/panic.go:426 +0x4e9
github.com/mattermost/platform/store.setupConnection(0x9e75c0, 0x6, 0xc8200f5c88, 0x5, 0xc820017310, 0x48, 0xa, 0xa, 0xc800000000, 0xfeef)
/Users/tomcaridi/go/src/github.com/mattermost/platform/store/sql_store.go:173 +0x894
github.com/mattermost/platform/store.NewSqlStore(0x0, 0x0)
/Users/tomcaridi/go/src/github.com/mattermost/platform/store/sql_store.go:62 +0x122
github.com/mattermost/platform/api.NewServer()
/Users/tomcaridi/go/src/github.com/mattermost/platform/api/server.go:35 +0xe8
github.com/mattermost/platform/api.Setup()
/Users/tomcaridi/go/src/github.com/mattermost/platform/api/api_test.go:19 +0x5e
github.com/mattermost/platform/api.TestGetLogs(0xc8200835f0)
/Users/tomcaridi/go/src/github.com/mattermost/platform/api/admin_test.go:14 +0x32
testing.tRunner(0xc8200835f0, 0xe28480)
/usr/local/Cellar/go/1.6/libexec/src/testing/testing.go:473 +0x98
created by testing.RunTests
/usr/local/Cellar/go/1.6/libexec/src/testing/testing.go:582 +0x892
exit status 2
FAIL github.com/mattermost/platform/api 1.130s
godep: go exit status 1
make: *** [go-test] Error 1
Posts: 1
Participants: 1