mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
				synced 2025-11-04 04:27:48 +00:00 
			
		
		
		
	Allow getting config options and add multiple overloads for set
This commit is contained in:
		@@ -93,7 +93,7 @@ public:
 | 
			
		||||
    Configuration make_consumer_config() {
 | 
			
		||||
        Configuration config;
 | 
			
		||||
        config.set("metadata.broker.list", KAFKA_TEST_INSTANCE);
 | 
			
		||||
        config.set("enable.auto.commit", "false");
 | 
			
		||||
        config.set("enable.auto.commit", false);
 | 
			
		||||
        config.set("group.id", "producer_test");
 | 
			
		||||
        return config;
 | 
			
		||||
    }
 | 
			
		||||
@@ -268,5 +268,5 @@ TEST_F(ProducerTest, PartitionerCallbackOnDefaultTopicConfig) {
 | 
			
		||||
    ASSERT_EQ(1, messages.size());
 | 
			
		||||
    const auto& message = messages[0];
 | 
			
		||||
    EXPECT_EQ(partition, message.get_partition());
 | 
			
		||||
    EXPECT_TRUE(callback_called);
 | 
			
		||||
    EXPECT_TRUE(callback_called);   
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user