Skip to content

Commit eefdbb9

Browse files
committed
Move start request tracking before first produce in
both variations to track first metadata request as well
1 parent 6353ea9 commit eefdbb9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/0146-metadata_mock.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ static void do_test_fast_metadata_refresh(int variation) {
149149

150150
rk = test_create_handle(RD_KAFKA_PRODUCER, conf);
151151

152+
rd_kafka_mock_start_request_tracking(mcluster);
152153

153154
if (variation == 1) {
154155
/* Produce some messages to the topic
@@ -167,8 +168,6 @@ static void do_test_fast_metadata_refresh(int variation) {
167168
mcluster, topic, RD_KAFKA_RESP_ERR_KAFKA_STORAGE_ERROR);
168169
}
169170

170-
rd_kafka_mock_start_request_tracking(mcluster);
171-
172171
test_produce_msgs2(rk, topic, 0, 0, 0, 3, NULL, 5);
173172

174173
/* Wait some time for seeing the retries */

0 commit comments

Comments
 (0)