Skip to content

Commit

Permalink
Fix broken tests (#4231)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxing1292 committed Apr 25, 2023
1 parent 8eb42e3 commit 5797648
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions service/history/replication/stream_receiver_monitor_test.go
Expand Up @@ -209,6 +209,8 @@ func (s *streamReceiverMonitorSuite) TestGenerateStreamKeys_4To1() {
}

func (s *streamReceiverMonitorSuite) TestDoReconcileStreams_Add() {
s.clusterMetadata.EXPECT().GetAllClusterInfo().Return(cluster.TestAllClusterInfo).AnyTimes()

clientKey := NewClusterShardKey(s.clientClusterID, rand.Int31())
serverKey := NewClusterShardKey(s.serverClusterID, rand.Int31())

Expand Down Expand Up @@ -236,6 +238,8 @@ func (s *streamReceiverMonitorSuite) TestDoReconcileStreams_Add() {
}

func (s *streamReceiverMonitorSuite) TestDoReconcileStreams_Remove() {
s.clusterMetadata.EXPECT().GetAllClusterInfo().Return(cluster.TestAllClusterInfo).AnyTimes()

clientKey := NewClusterShardKey(s.clientClusterID, rand.Int31())
serverKey := NewClusterShardKey(s.serverClusterID, rand.Int31())
stream := NewStreamReceiver(s.streamReceiverMonitor.ProcessToolBox, clientKey, serverKey)
Expand All @@ -259,6 +263,8 @@ func (s *streamReceiverMonitorSuite) TestDoReconcileStreams_Remove() {
}

func (s *streamReceiverMonitorSuite) TestDoReconcileStreams_Reactivate() {
s.clusterMetadata.EXPECT().GetAllClusterInfo().Return(cluster.TestAllClusterInfo).AnyTimes()

clientKey := NewClusterShardKey(s.clientClusterID, rand.Int31())
serverKey := NewClusterShardKey(s.serverClusterID, rand.Int31())
stream := NewStreamReceiver(s.streamReceiverMonitor.ProcessToolBox, clientKey, serverKey)
Expand Down

0 comments on commit 5797648

Please sign in to comment.