From e0cbfc74bd3bce9341f03530bd0e951c7757bcda Mon Sep 17 00:00:00 2001 From: Manan Gupta Date: Thu, 7 Nov 2024 09:40:17 +0530 Subject: [PATCH] test: fix test expectations Signed-off-by: Manan Gupta --- go/vt/vtctl/grpcvtctldserver/server_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/go/vt/vtctl/grpcvtctldserver/server_test.go b/go/vt/vtctl/grpcvtctldserver/server_test.go index 4a16d85518c..93f302a1097 100644 --- a/go/vt/vtctl/grpcvtctldserver/server_test.go +++ b/go/vt/vtctl/grpcvtctldserver/server_test.go @@ -5570,7 +5570,7 @@ func TestGetTransactionInfo(t *testing.T) { "80-": { Dtid: "bb", Participants: []*querypb.Target{ - {Keyspace: ks, Shard: "-80"}, + {Keyspace: ks, Shard: "-80", TabletType: topodatapb.TabletType_PRIMARY}, }, }, }, @@ -5587,7 +5587,8 @@ func TestGetTransactionInfo(t *testing.T) { Metadata: &querypb.TransactionMetadata{ Dtid: "bb", Participants: []*querypb.Target{ - {Keyspace: ks, Shard: "-80"}, + {Keyspace: ks, Shard: "-80", TabletType: topodatapb.TabletType_PRIMARY}, + {Keyspace: ks, Shard: "80-", TabletType: topodatapb.TabletType_PRIMARY}, }, }, ShardStates: []*vtctldatapb.ShardTransactionState{