Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekj720 committed May 8, 2024
1 parent c8da432 commit ae89f34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/domain/replication_queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -715,14 +715,14 @@ func TestReplicationQueueImpl_purgeProcessor(t *testing.T) {
ctrl := gomock.NewController(t)
mockQueue := persistence.NewMockQueueManager(ctrl)
rq := NewReplicationQueue(mockQueue, "testCluster", nil, nil).(*replicationQueueImpl)
atomic.StoreInt32(&rq.status, common.DaemonStatusStarted)
atomic.StoreInt32(&rq.status, common.DaemonStatusInitialized)

done := make(chan bool)
mockQueue.EXPECT().GetAckLevels(gomock.Any()).Return(map[string]int64{}, nil).AnyTimes()
mockQueue.EXPECT().DeleteMessagesBefore(gomock.Any(), gomock.Any()).Return(nil).AnyTimes()

go func() {
rq.purgeProcessor()
rq.Start()
close(done)
}()

Expand Down

0 comments on commit ae89f34

Please sign in to comment.