From 937aafd76e698830e784cf8af849eaae479a6ace Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 24 Apr 2025 17:04:38 +0200 Subject: 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. --- syz-cluster/controller/processor_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'syz-cluster/controller/processor_test.go') 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 } -- cgit mrf-deployment