Skip to content

Commit 6deb583

Browse files
committed
lock in test
1 parent 929a952 commit 6deb583

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/message_test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,9 @@ static char *test_q2_ignore_headers(void *context)
17311731

17321732
const size_t header_ct = DEQ_SIZE(content->buffers);
17331733
assert(header_ct);
1734+
sys_mutex_lock(&content->lock);
17341735
assert(!_Q2_holdoff_should_block_LH(content));
1736+
sys_mutex_unlock(&content->lock);
17351737

17361738
sys_mutex_lock(&content->lock);
17371739
// Now append buffers until Q2 blocks

0 commit comments

Comments
 (0)