X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d7e76aa491a1878196d3f57f2e61e09d193f5070..07baa0ed049746514495d1648c1aef0c40545141:/services/keep-balance/integration_test.go diff --git a/services/keep-balance/integration_test.go b/services/keep-balance/integration_test.go index 52e6149158..42463a002a 100644 --- a/services/keep-balance/integration_test.go +++ b/services/keep-balance/integration_test.go @@ -2,10 +2,11 @@ // // SPDX-License-Identifier: AGPL-3.0 -package main +package keepbalance import ( "bytes" + "context" "io" "os" "strings" @@ -38,7 +39,6 @@ func (s *integrationSuite) SetUpSuite(c *check.C) { c.Skip("-short") } arvadostest.ResetEnv() - arvadostest.StartAPI() arvadostest.StartKeep(4, true) arv, err := arvadosclient.MakeArvadosClient() @@ -62,7 +62,6 @@ func (s *integrationSuite) TearDownSuite(c *check.C) { c.Skip("-short") } arvadostest.StopKeep(4) - arvadostest.StopAPI() } func (s *integrationSuite) SetUpTest(c *check.C) { @@ -99,7 +98,7 @@ func (s *integrationSuite) TestBalanceAPIFixtures(c *check.C) { Logger: logger, Metrics: newMetrics(prometheus.NewRegistry()), } - nextOpts, err := bal.Run(s.client, s.config, opts) + nextOpts, err := bal.Run(context.Background(), s.client, s.config, opts) c.Check(err, check.IsNil) c.Check(nextOpts.SafeRendezvousState, check.Not(check.Equals), "") c.Check(nextOpts.CommitPulls, check.Equals, true)