projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
8460: Rename pg -> event_source.go
[arvados.git]
/
services
/
keepstore
/
pull_worker_integration_test.go
diff --git
a/services/keepstore/pull_worker_integration_test.go
b/services/keepstore/pull_worker_integration_test.go
index e0bad0045af34d8067591fa723e9229be093790c..77b4c75f4a702d4afd701d3601f9a54062b2ba2f 100644
(file)
--- a/
services/keepstore/pull_worker_integration_test.go
+++ b/
services/keepstore/pull_worker_integration_test.go
@@
-27,7
+27,7
@@
func SetupPullWorkerIntegrationTest(t *testing.T, testData PullWorkIntegrationTe
// start api and keep servers
arvadostest.StartAPI()
// start api and keep servers
arvadostest.StartAPI()
- arvadostest.StartKeep()
+ arvadostest.StartKeep(
2, false
)
// make arvadosclient
arv, err := arvadosclient.MakeArvadosClient()
// make arvadosclient
arv, err := arvadosclient.MakeArvadosClient()
@@
-37,9
+37,8
@@
func SetupPullWorkerIntegrationTest(t *testing.T, testData PullWorkIntegrationTe
// keep client
keepClient = &keepclient.KeepClient{
// keep client
keepClient = &keepclient.KeepClient{
- Arvados:
&
arv,
+ Arvados: arv,
Want_replicas: 1,
Want_replicas: 1,
- Using_proxy: true,
Client: &http.Client{},
}
Client: &http.Client{},
}
@@
-82,6
+81,8
@@
func TestPullWorkerIntegration_GetNonExistingLocator(t *testing.T) {
}
pullRequest := SetupPullWorkerIntegrationTest(t, testData, false)
}
pullRequest := SetupPullWorkerIntegrationTest(t, testData, false)
+ defer arvadostest.StopAPI()
+ defer arvadostest.StopKeep(2)
performPullWorkerIntegrationTest(testData, pullRequest, t)
}
performPullWorkerIntegrationTest(testData, pullRequest, t)
}
@@
-97,6
+98,8
@@
func TestPullWorkerIntegration_GetExistingLocator(t *testing.T) {
}
pullRequest := SetupPullWorkerIntegrationTest(t, testData, true)
}
pullRequest := SetupPullWorkerIntegrationTest(t, testData, true)
+ defer arvadostest.StopAPI()
+ defer arvadostest.StopKeep(2)
performPullWorkerIntegrationTest(testData, pullRequest, t)
}
performPullWorkerIntegrationTest(testData, pullRequest, t)
}