diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-04-24 17:04:38 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-04-30 12:32:14 +0000 |
| commit | 937aafd76e698830e784cf8af849eaae479a6ace (patch) | |
| tree | 1cf7050e4136b688fbac482cef6b415d181605bf /syz-cluster/controller/processor_test.go | |
| parent | 7c6d304203f2c91fd2927dc473e0b56379eb0dd5 (diff) | |
syz-cluster: separate global env from global config
Environment variables are convenient for storing values like DB or GCS
bucket names, but structured formats are more convenient for the actual
service configuration.
Separate global-config from global-config-env and add the functionality
that queries and parses the config options.
Diffstat (limited to 'syz-cluster/controller/processor_test.go')
| -rw-r--r-- | syz-cluster/controller/processor_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/syz-cluster/controller/processor_test.go b/syz-cluster/controller/processor_test.go index 9f5e04d9b..68c62ba48 100644 --- a/syz-cluster/controller/processor_test.go +++ b/syz-cluster/controller/processor_test.go @@ -191,11 +191,11 @@ func prepareProcessorTest(t *testing.T, workflows workflow.Service) (*SeriesProc env, ctx := app.TestEnvironment(t) client := controller.TestServer(t, env) return &SeriesProcessor{ - seriesRepo: db.NewSeriesRepository(env.Spanner), - sessionRepo: db.NewSessionRepository(env.Spanner), - sessionTestRepo: db.NewSessionTestRepository(env.Spanner), - workflows: workflows, - dbPollInterval: time.Second / 10, - parallelWorkers: 2, + seriesRepo: db.NewSeriesRepository(env.Spanner), + sessionRepo: db.NewSessionRepository(env.Spanner), + sessionTestRepo: db.NewSessionTestRepository(env.Spanner), + workflows: workflows, + dbPollInterval: time.Second / 10, + parallelWorkflows: 2, }, client, ctx } |
