From 1ea7f60e3d9004daa9735c158314858003a862a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Wed, 6 Mar 2024 19:16:58 +0000 Subject: [PATCH] log --- flow/e2e/congen.go | 17 +++++++---------- flow/e2e/postgres/peer_flow_pg_test.go | 4 ++++ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/flow/e2e/congen.go b/flow/e2e/congen.go index 8599fcc1ab..c0d91e0460 100644 --- a/flow/e2e/congen.go +++ b/flow/e2e/congen.go @@ -173,17 +173,14 @@ func TableMappings(s GenericSuite, tables ...string) []*protos.TableMapping { if len(tables)&1 != 0 { panic("must receive even number of table names") } - tableMappings := make([]*protos.TableMapping, len(tables)/2) + tm := make([]*protos.TableMapping, len(tables)/2) for i := 0; i < len(tables); i += 2 { - tableMappings = append( - tableMappings, - &protos.TableMapping{ - SourceTableIdentifier: AttachSchema(s, tables[i]), - DestinationTableIdentifier: s.DestinationTable(tables[i+1]), - }, - ) - } - return tableMappings + tm = append(tm, &protos.TableMapping{ + SourceTableIdentifier: AttachSchema(s, tables[i]), + DestinationTableIdentifier: s.DestinationTable(tables[i+1]), + }) + } + return tm } func (c *FlowConnectionGenerationConfig) GenerateFlowConnectionConfigs() *protos.FlowConnectionConfigs { diff --git a/flow/e2e/postgres/peer_flow_pg_test.go b/flow/e2e/postgres/peer_flow_pg_test.go index c56608c9f6..b1a6c4049e 100644 --- a/flow/e2e/postgres/peer_flow_pg_test.go +++ b/flow/e2e/postgres/peer_flow_pg_test.go @@ -98,6 +98,10 @@ func (s PeerFlowE2ETestSuitePG) Test_Simple_Flow_PG() { } flowConnConfig := connectionGen.GenerateFlowConnectionConfigs() + for _, tm := range flowConnConfig.TableMappings { + s.t.Log(tm.SourceTableIdentifier, tm.DestinationTableIdentifier) + s.t.Log(s.attachSchemaSuffix("test_simple_flow"), s.attachSchemaSuffix("test_simple_flow_dst")) + } flowConnConfig.MaxBatchSize = 100 tc := e2e.NewTemporalClient(s.t)