Skip to content

Commit 553e68d

Browse files
committed
test: internal: ring_buffer: update calls to flb_ring_buffer_peek to add missing skip_count argument.
Signed-off-by: Phillip Adair Stewart Whelan <phillip.whelan@chronosphere.io>
1 parent 7bd1fb7 commit 553e68d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/internal/ring_buffer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,15 @@ void test_peek_seek()
193193
c = NULL;
194194

195195
/* consume one entry */
196-
ret = flb_ring_buffer_peek(rb, (void *) &c, sizeof(c));
196+
ret = flb_ring_buffer_peek(rb, 0, (void *) &c, sizeof(c));
197197
TEST_CHECK(ret == 0);
198198

199199
/* the consumed entry must be equal to the first one */
200200
c = &checks[0];
201201
TEST_CHECK(strcmp(c->buf_a, "a1") == 0 && strcmp(c->buf_b, "a2") ==0);
202202

203203
/* consume one entry */
204-
ret = flb_ring_buffer_peek(rb, (void *) &c, sizeof(c));
204+
ret = flb_ring_buffer_peek(rb, 0, (void *) &c, sizeof(c));
205205
TEST_CHECK(ret == 0);
206206

207207
/* the consumed entry must be equal to the first one */

0 commit comments

Comments
 (0)