From 9ca0a8144566b173e03d0b5409bf6c8d7ae29129 Mon Sep 17 00:00:00 2001 From: yangsx <380129340@qq.com> Date: Wed, 17 Jul 2024 00:38:42 +0800 Subject: [PATCH] format and tidy --- tests/cppunit/types/stream_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cppunit/types/stream_test.cc b/tests/cppunit/types/stream_test.cc index 6d60f918a19..f522b8273c5 100644 --- a/tests/cppunit/types/stream_test.cc +++ b/tests/cppunit/types/stream_test.cc @@ -223,7 +223,7 @@ TEST_F(RedisStreamTest, NextIDCurrentTimestampWithSpecificSeqNumber) { } { - last_id = redis::StreamEntryID(UINT64_MAX-1, 0); + last_id = redis::StreamEntryID(UINT64_MAX - 1, 0); auto strategy = ParseNextStreamEntryIDStrategy("*-123456"); auto s = (*strategy)->GenerateID(last_id, &next_id); EXPECT_FALSE(s.IsOK()); @@ -364,7 +364,7 @@ TEST_F(RedisStreamTest, AddEntryWithExistingMsAnySeqNoAndExistingSeqNoIsAlreadyM } TEST_F(RedisStreamTest, AddEntryAndExistingMsAndSeqNoAreAlreadyMax) { - uint64_t ms = UINT64_MAX-1; + uint64_t ms = UINT64_MAX - 1; uint64_t seq = UINT64_MAX; redis::StreamAddOptions options; options.next_id_strategy = *ParseNextStreamEntryIDStrategy(fmt::format("{}-{}", ms, seq));