@@ -2518,12 +2518,12 @@ TEST_F(RedisStreamTest, StreamConsumerGroupCreateAndDestroy) {
25182518 std::string group_name = " TestGroup" ;
25192519 auto s = stream_->CreateGroup (*ctx_, stream_name, create_options, group_name);
25202520 EXPECT_TRUE (s.ok ());
2521- uint64_t delete_cnt = 0 ;
2522- s = stream_->DestroyGroup (*ctx_, stream_name, group_name, &delete_cnt );
2523- EXPECT_TRUE (delete_cnt != 0 );
2524- delete_cnt = 0 ;
2525- s = stream_->DestroyGroup (*ctx_, stream_name, group_name, &delete_cnt );
2526- EXPECT_TRUE (delete_cnt == 0 );
2521+ bool destroyed = false ;
2522+ s = stream_->DestroyGroup (*ctx_, stream_name, group_name, &destroyed );
2523+ EXPECT_TRUE (destroyed );
2524+ destroyed = false ;
2525+ s = stream_->DestroyGroup (*ctx_, stream_name, group_name, &destroyed );
2526+ EXPECT_FALSE (destroyed );
25272527}
25282528
25292529TEST_F (RedisStreamTest, DestroyGroupCleansUpConsumersAndPelEntries) {
@@ -2557,15 +2557,15 @@ TEST_F(RedisStreamTest, DestroyGroupCleansUpConsumersAndPelEntries) {
25572557 EXPECT_TRUE (s.ok ());
25582558 EXPECT_EQ (entries.size (), 2 );
25592559
2560- uint64_t delete_cnt = 0 ;
2561- s = stream_->DestroyGroup (*ctx_, stream_name, group_name, &delete_cnt );
2560+ bool destroyed = false ;
2561+ s = stream_->DestroyGroup (*ctx_, stream_name, group_name, &destroyed );
25622562 EXPECT_TRUE (s.ok ());
2563- EXPECT_GT (delete_cnt, 0 );
2563+ EXPECT_TRUE (destroyed );
25642564
25652565 // Verify re-destroying the same group deletes nothing
2566- delete_cnt = 0 ;
2567- s = stream_->DestroyGroup (*ctx_, stream_name, group_name, &delete_cnt );
2568- EXPECT_EQ (delete_cnt, 0 );
2566+ destroyed = false ;
2567+ s = stream_->DestroyGroup (*ctx_, stream_name, group_name, &destroyed );
2568+ EXPECT_FALSE (destroyed );
25692569
25702570 // Verify stream entries are still intact after group destruction
25712571 std::vector<redis::StreamEntry> remaining;
@@ -2623,10 +2623,10 @@ TEST_F(RedisStreamTest, DestroyGroupDoesNotAffectOtherGroups) {
26232623 EXPECT_TRUE (s.ok ());
26242624
26252625 // Destroy group1
2626- uint64_t delete_cnt = 0 ;
2627- s = stream_->DestroyGroup (*ctx_, stream_name, group1, &delete_cnt );
2626+ bool destroyed = false ;
2627+ s = stream_->DestroyGroup (*ctx_, stream_name, group1, &destroyed );
26282628 EXPECT_TRUE (s.ok ());
2629- EXPECT_GT (delete_cnt, 0 );
2629+ EXPECT_TRUE (destroyed );
26302630
26312631 // Verify group2 still exists with its consumer
26322632 std::vector<std::pair<std::string, redis::StreamConsumerGroupMetadata>> group_metadata;
0 commit comments