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 77c65af
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 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 Down Expand Up @@ -486,7 +486,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 +498,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 77c65af

Please sign in to comment.