Merged in feature/jobsync (pull request #63)
Document Sync and Job Sync * docsyncfunc * startedQueryWork * morefixes * jobsyncsvcstart * save * jobsynctext * save * save * docsync * shorttest * jobsync * jobsyncupdateoncollectorupdate * passlivetest * collectortest * lint
This commit is contained in:
@@ -5,6 +5,8 @@ import (
|
||||
"queryorchestration/internal/database"
|
||||
"queryorchestration/internal/database/repository"
|
||||
"queryorchestration/internal/document"
|
||||
cleanversion "queryorchestration/internal/document/clean/version"
|
||||
textversion "queryorchestration/internal/document/text/version"
|
||||
"queryorchestration/internal/job/collector"
|
||||
"queryorchestration/internal/query"
|
||||
"queryorchestration/internal/query/result"
|
||||
@@ -28,10 +30,11 @@ func TestTest(t *testing.T) {
|
||||
cfg := &serviceconfig.BaseConfig{}
|
||||
cfg.DBPool = pool
|
||||
cfg.DBQueries = repository.New(pool)
|
||||
docsvc := document.New(cfg)
|
||||
col := collector.New(cfg, &collector.Services{
|
||||
Document: docsvc,
|
||||
TextVersion: textversion.New(cfg),
|
||||
CleanVersion: cleanversion.New(cfg),
|
||||
})
|
||||
docsvc := document.New(cfg)
|
||||
svc := querytest.New(cfg, &querytest.Services{
|
||||
Document: docsvc,
|
||||
Collector: col,
|
||||
@@ -45,7 +48,7 @@ func TestTest(t *testing.T) {
|
||||
JobID: uuid.New(),
|
||||
}
|
||||
doc := document.Document{
|
||||
ID: uuid.New(),
|
||||
ID: coll.JobID,
|
||||
JobID: coll.JobID,
|
||||
Hash: "example_hash",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user