Moar logging for integrations test (#3113)

This commit is contained in:
Erik Arvidsson
2017-01-25 15:09:16 -08:00
committed by GitHub
parent a34a444f42
commit c7db32037e

View File

@@ -61,7 +61,9 @@ type IntegrationSuite struct {
func Run(t *testing.T, s IntegrationSuiteInterface) {
s.SetT(t)
fmt.Println("== Calling npmInstall")
s.npmInstall()
fmt.Println("== Done npmInstall")
cs := chunks.NewMemoryStore()
s.setCs(cs)
@@ -69,7 +71,9 @@ func Run(t *testing.T, s IntegrationSuiteInterface) {
s.Setup()
}
fmt.Println("== Calling runServer")
runServer(s, cs)
fmt.Println("== Done runServer")
if s, ok := s.(TeardownSuite); ok {
s.Teardown()
@@ -80,7 +84,9 @@ func runServer(s IntegrationSuiteInterface, cs chunks.ChunkStore) {
server := datas.NewRemoteDatabaseServer(cs, 0)
server.Ready = func() {
s.setPort(server.Port())
fmt.Println("== Calling runNode")
runNode(s)
fmt.Println("== Done runNode")
server.Stop()
}
server.Run()