X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2f66d4cc05e9442a9bb69969744d0750a02a1ed4..bd5f21b6a567248d05126d78bab091555764a052:/services/ws/event_source_test.go diff --git a/services/ws/event_source_test.go b/services/ws/event_source_test.go index 98a9e8b978..b7b8ac3006 100644 --- a/services/ws/event_source_test.go +++ b/services/ws/event_source_test.go @@ -2,17 +2,17 @@ // // SPDX-License-Identifier: AGPL-3.0 -package main +package ws import ( "database/sql" "fmt" - "os" - "path/filepath" "sync" "time" "git.arvados.org/arvados.git/sdk/go/arvados" + "git.arvados.org/arvados.git/sdk/go/ctxlog" + "github.com/prometheus/client_golang/prometheus" check "gopkg.in/check.v1" ) @@ -21,7 +21,7 @@ var _ = check.Suite(&eventSourceSuite{}) type eventSourceSuite struct{} func testDBConfig() arvados.PostgreSQLConnection { - cfg, err := arvados.GetConfig(filepath.Join(os.Getenv("WORKSPACE"), "tmp", "arvados.yml")) + cfg, err := arvados.GetConfig(arvados.DefaultConfigFile) if err != nil { panic(err) } @@ -46,6 +46,8 @@ func (*eventSourceSuite) TestEventSource(c *check.C) { pges := &pgEventSource{ DataSource: cfg.String(), QueueSize: 4, + Logger: ctxlog.TestLogger(c), + Reg: prometheus.NewRegistry(), } go pges.Run() sinks := make([]eventSink, 18)