Skip to content

Commit

Permalink
Try wait to avoid pool use after close
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Dec 11, 2023
1 parent 87fadec commit ef2977e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow/e2e/bigquery/peer_flow_bq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Toast_Nochanges_BQ() {

// in a separate goroutine, wait for PeerFlowStatusQuery to finish setup
// and execute a transaction touching toast columns
done := make(chan struct{})
go func() {
e2e.SetupCDCFlowStatusQuery(env, connectionGen)
/* transaction updating no rows */
Expand All @@ -409,6 +410,7 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Toast_Nochanges_BQ() {
`, srcTableName, srcTableName))
require.NoError(s.t, err)
fmt.Println("Executed a transaction touching toast columns")
done <- struct{}{}
}()

env.ExecuteWorkflow(peerflow.CDCFlowWorkflowWithConfig, flowConnConfig, &limits, nil)
Expand All @@ -422,6 +424,7 @@ func (s PeerFlowE2ETestSuiteBQ) Test_Toast_Nochanges_BQ() {

s.compareTableContentsBQ(dstTableName, "id,t1,t2,k")
env.AssertExpectations(s.t)
<-done
}

func (s PeerFlowE2ETestSuiteBQ) Test_Toast_Advance_1_BQ() {
Expand Down

0 comments on commit ef2977e

Please sign in to comment.