Skip to content

Commit

Permalink
see RunID run
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Jan 9, 2025
1 parent 70c2b93 commit 068c67b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flow/e2e/clickhouse/peer_flow_ch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func (s ClickHouseSuite) Test_Addition_Removal() {
return !rows.Next()
})

runID := env.GetRunID()
e2e.SignalWorkflow(env, model.CDCDynamicPropertiesSignal, &protos.CDCFlowConfigUpdate{
AdditionalTables: []*protos.TableMapping{
{
Expand All @@ -123,6 +124,8 @@ func (s ClickHouseSuite) Test_Addition_Removal() {
flowStatus := getFlowStatus()
return flowStatus == protos.FlowStatus_STATUS_RUNNING
})
afterAddRunID := env.GetRunID()
require.NotEqual(s.t, runID, afterAddRunID)

_, err = s.Conn().Exec(context.Background(), fmt.Sprintf(`
INSERT INTO %s (key) VALUES ('test');
Expand Down Expand Up @@ -163,6 +166,8 @@ func (s ClickHouseSuite) Test_Addition_Removal() {
flowStatus := getFlowStatus()
return flowStatus == protos.FlowStatus_STATUS_RUNNING
})
afterRemoveRunID := env.GetRunID()
require.NotEqual(s.t, runID, afterRemoveRunID)

_, err = s.Conn().Exec(context.Background(), fmt.Sprintf(`
INSERT INTO %s (key) VALUES ('test');
Expand Down

0 comments on commit 068c67b

Please sign in to comment.