Skip to content

Commit ef7fbd2

Browse files
committed
Fix breakage from concurrent merge
We merged these two PRs concurrently and thus ended up with a breakage: - vitessio#14735 - vitessio#14786 This PR addresses that issue by using a locally scoped vtgate connection according to the newly established model. Signed-off-by: Matt Lord <mattalord@gmail.com>
1 parent 4bb84ed commit ef7fbd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

go/test/endtoend/vreplication/vdiff2_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ func TestVDiff2(t *testing.T) {
172172
}
173173

174174
func testWorkflow(t *testing.T, vc *VitessCluster, tc *testCase, tks *Keyspace, cells []*Cell) {
175+
vtgateConn := vc.GetVTGateConn(t)
176+
defer vtgateConn.Close()
175177
arrTargetShards := strings.Split(tc.targetShards, ",")
176178
if tc.typ == "Reshard" {
177179
require.NoError(t, vc.AddShards(t, cells, tks, tc.targetShards, 0, 0, tc.tabletBaseID, targetKsOpts))

0 commit comments

Comments
 (0)