From 7fe736519e2d44aa99eaa2f679364f5c1e50034f Mon Sep 17 00:00:00 2001 From: Vilius Okockis Date: Thu, 11 Apr 2024 10:44:42 +0300 Subject: [PATCH] fix TestVSchemaChangesUnderLoad Signed-off-by: Vilius Okockis --- go/test/endtoend/vreplication/vschema_load_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go/test/endtoend/vreplication/vschema_load_test.go b/go/test/endtoend/vreplication/vschema_load_test.go index cddfe2a4019..73e72c28402 100644 --- a/go/test/endtoend/vreplication/vschema_load_test.go +++ b/go/test/endtoend/vreplication/vschema_load_test.go @@ -135,7 +135,7 @@ func TestVSchemaChangesUnderLoad(t *testing.T) { defer timer.Stop() log.Infof("Started ApplyVSchema") for { - if err := vc.VtctlClient.ExecuteCommand("ApplyVSchema", "--", "--vschema={}", "product"); err != nil { + if err := vc.VtctlClient.ExecuteCommand("ApplyVSchema", "-vschema", "{}", "product"); err != nil { log.Errorf("ApplyVSchema command failed with %+v\n", err) return } @@ -155,8 +155,8 @@ func TestVSchemaChangesUnderLoad(t *testing.T) { }() <-ch // wait for enough ApplyVSchema calls before doing a PRS - if err := vc.VtctlClient.ExecuteCommand("PlannedReparentShard", "--", "--keyspace_shard", "product/0", - "--new_master", "zone1-101", "--wait_replicas_timeout", defaultTimeout.String()); err != nil { + if err := vc.VtctlClient.ExecuteCommand("PlannedReparentShard", "-keyspace_shard", "product/0", + "-new_master", "zone1-101", "-wait_replicas_timeout", defaultTimeout.String()); err != nil { require.NoError(t, err, "PlannedReparentShard command failed") } }