  
  // helper class for unit tests
  class TestReplay : public Replay {
   public:
    TestReplay(const QString &route, uint8_t flags = REPLAY_FLAG_NO_FILE_CACHE) : Replay(route, {}, {}, {}, nullptr, flags) {}
    void test_seek();
    void testSeekTo(int seek_to);
  };
  
  void TestReplay::testSeekTo(int seek_to) {
 
</s> remove       return true;
 </s> add       // Do not wake up the stream thread if the current segment has not been merged.
      return isSegmentMerged(current_segment_) || (segments_.count(current_segment_) == 0); </s> remove       testSeekTo(util::random_int(0, 1 * 60));
 </s> add       testSeekTo(util::random_int(0, 2 * 60));
  TestReplay(const QString &route, uint32_t flags = REPLAY_FLAG_NO_FILE_CACHE | REPLAY_FLAG_NO_VIPC) : Replay(route, {}, {}, {}, nullptr, flags) {}
  
  // helper class for unit tests
  class TestReplay : public Replay {
   public:
  TestReplay(const QString &route, uint32_t flags = REPLAY_FLAG_NO_FILE_CACHE | REPLAY_FLAG_NO_VIPC) : Replay(route, {}, {}, {}, nullptr, flags) {}
    void test_seek();
    void testSeekTo(int seek_to);
  };
  
  void TestReplay::testSeekTo(int seek_to) {
keep keep keep keep replace keep keep keep keep keep
 replay: fix seekTo issue (#29422)

* fix seekTo issue

* remove extra space 
tools/replay/tests/test_replay.cc