Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
anchitj committed Sep 29, 2023
1 parent ab8c71e commit 69bdfa9
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tests/0089-max_poll_interval.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ static void consume_cb(rd_kafka_message_t *rkmessage, void *opaque) {
TEST_SAY("Consume callback\n");
}

static void do_test_max_poll_reset_with_consumer_cb(void ) {
static void do_test_max_poll_reset_with_consumer_cb(void) {
const char *topic = test_mk_topic_name("0089_max_poll_interval", 1);
rd_kafka_conf_t *conf;
char groupid[64];
Expand All @@ -468,10 +468,8 @@ static void do_test_max_poll_reset_with_consumer_cb(void ) {
test_create_topic(NULL, topic, 1, 1);
uint64_t testid = test_id_generate();


test_produce_msgs_easy(topic, testid, -1, 100);


test_str_id_generate(groupid, sizeof(groupid));
test_conf_init(&conf, NULL, 60);
test_conf_set(conf, "session.timeout.ms", "10000");
Expand All @@ -486,7 +484,8 @@ static void do_test_max_poll_reset_with_consumer_cb(void ) {
TEST_SAY("Subscribed to %s and sleeping for 5 s\n", topic);
rd_sleep(5);
rd_kafka_poll(rk, 10);
TEST_SAY("Polled and sleeping again for 6s. Max poll should be reset\n");
TEST_SAY(
"Polled and sleeping again for 6s. Max poll should be reset\n");
rd_sleep(6);

// Poll should work
Expand All @@ -497,11 +496,11 @@ static void do_test_max_poll_reset_with_consumer_cb(void ) {
}

int main_0089_max_poll_interval(int argc, char **argv) {
do_test();
do_test_with_log_queue();
do_test_rejoin_after_interval_expire(rd_false, rd_false);
do_test_rejoin_after_interval_expire(rd_true, rd_false);
do_test_rejoin_after_interval_expire(rd_false, rd_true);
do_test_max_poll_reset_with_consumer_cb();
do_test();
do_test_with_log_queue();
do_test_rejoin_after_interval_expire(rd_false, rd_false);
do_test_rejoin_after_interval_expire(rd_true, rd_false);
do_test_rejoin_after_interval_expire(rd_false, rd_true);
do_test_max_poll_reset_with_consumer_cb();
return 0;
}

0 comments on commit 69bdfa9

Please sign in to comment.