Skip to content

Commit

Permalink
Fix vtgate/reference test
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <[email protected]>
  • Loading branch information
mattlord committed Jan 3, 2025
1 parent 8d8b3b4 commit 1cb43c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions go/test/endtoend/vreplication/vstream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ func TestMultiVStreamsKeyspaceReshard(t *testing.T) {
// Confirm that we have shard GTIDs for the global shard and the old/original shards.
require.Len(t, newVGTID.GetShardGtids(), 3)

waitForWorkflowState(t, vc, fmt.Sprintf("%s.%s", ks, wf), binlogdatapb.VReplicationWorkflowState_Running.String())

// Switch the traffic to the new shards.
reshardAction(t, "SwitchTraffic", wf, ks, oldShards, newShards, defaultCellName, tabletType)

Expand Down
5 changes: 3 additions & 2 deletions go/test/endtoend/vtgate/queries/reference/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func TestMain(m *testing.M) {
"--target-keyspace", shardedKeyspaceName,
"create",
"--source-keyspace", unshardedKeyspaceName,
"--table-settings", `'[{"target_table": "zip_detail", "source_expression": "select * from zip_detail", "create_ddl": "copy" }]'`,
"--table-settings", `[{"target_table": "zip_detail", "source_expression": "select * from zip_detail", "create_ddl": "copy" }]`,
"--tablet-types", "PRIMARY",
)
fmt.Fprintf(os.Stderr, "Output from materialize: %s\n", output)
Expand Down Expand Up @@ -207,8 +207,9 @@ func TestMain(m *testing.M) {
err = clusterInstance.VtctldClientProcess.ExecuteCommand(
"Workflow",
"--keyspace", shardedKeyspaceName,
"--workflow", "copy_zip_detail",
"delete",
"--workflow", "copy_zip_detail",
"--keep-data",
)
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to stop materialization workflow: %v", err)
Expand Down

0 comments on commit 1cb43c5

Please sign in to comment.