Skip to content

Commit

Permalink
format and tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangsx-1 committed Jul 16, 2024
1 parent 7895b30 commit 9ca0a81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cppunit/types/stream_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 9ca0a81

Please sign in to comment.