From 5d2a38e2e7ff8d218bb714eaf0cea38e95df346d Mon Sep 17 00:00:00 2001 From: Matt Lord Date: Tue, 11 Apr 2023 21:14:04 -0400 Subject: [PATCH] Try randomizing ports even more Signed-off-by: Matt Lord --- go/test/endtoend/vreplication/migrate_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/go/test/endtoend/vreplication/migrate_test.go b/go/test/endtoend/vreplication/migrate_test.go index 0c83658cee8..4739f680c8f 100644 --- a/go/test/endtoend/vreplication/migrate_test.go +++ b/go/test/endtoend/vreplication/migrate_test.go @@ -18,6 +18,7 @@ package vreplication import ( "fmt" + "math/rand" "testing" "github.com/stretchr/testify/require" @@ -55,7 +56,7 @@ func TestMigrate(t *testing.T) { defer vc.TearDown(t) defaultCell = vc.Cells[defaultCellName] - vc.AddKeyspace(t, []*Cell{defaultCell}, "product", "0", initialProductVSchema, initialProductSchema, defaultReplicas, defaultRdonly, 100, nil) + vc.AddKeyspace(t, []*Cell{defaultCell}, "product", "0", initialProductVSchema, initialProductSchema, defaultReplicas, defaultRdonly, 100+rand.Intn(100), nil) err := cluster.WaitForHealthyShard(vc.VtctldClient, "product", "0") require.NoError(t, err) vtgate = defaultCell.Vtgates[0] @@ -74,7 +75,7 @@ func TestMigrate(t *testing.T) { defer extVc.TearDown(t) extCell2 := extVc.Cells[extCell] - extVc.AddKeyspace(t, []*Cell{extCell2}, "rating", "0", initialExternalVSchema, initialExternalSchema, 0, 0, 1000, nil) + extVc.AddKeyspace(t, []*Cell{extCell2}, "rating", "0", initialExternalVSchema, initialExternalSchema, 0, 0, 1000+rand.Intn(1000), nil) extVtgate := extCell2.Vtgates[0] require.NotNil(t, extVtgate)