Skip to content

Commit 11a67a8

Browse files
committed
fix tests
1 parent 910367e commit 11a67a8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/ReaderTest.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,9 @@ TEST_P(ReaderSeekTest, testSeekToEndByTimestamp) {
991991
ASSERT_EQ(ResultOk, client.createReader(topic, MessageId::earliest(), readerConf, reader));
992992

993993
ASSERT_EQ(ResultOk, producer.send(MessageBuilder().setContent("msg").build()));
994-
auto now = std::numeric_limits<uint64_t>::max();
994+
// Server side (Java) uses signal 64 bits integers to represent the timestamp, so use max int64_t here to
995+
// seek to the end of topic.
996+
auto now = std::numeric_limits<int64_t>::max();
995997
ASSERT_EQ(ResultOk, reader.seek(now));
996998

997999
bool hasMessageAvailable;

0 commit comments

Comments
 (0)