Skip to content

Commit 1ee0a07

Browse files
committed
lock in test
1 parent 9a03607 commit 1ee0a07

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
@@ -1692,6 +1692,7 @@ static char *test_q2_ignore_headers(void *context)
16921692
char *result = 0;
16931693
qd_message_t *msg = qd_message();
16941694
qd_message_content_t *content = MSG_CONTENT(msg);
1695+
sys_mutex_lock(&content->lock);
16951696

16961697
// create a message and add a bunch of headers. Put each header in its own
16971698
// buffer to increase the buffer count.
@@ -1765,6 +1766,7 @@ static char *test_q2_ignore_headers(void *context)
17651766

17661767
exit:
17671768

1769+
sys_mutex_unlock(&content->lock);
17681770
qd_message_free(msg);
17691771
return result;
17701772
}

0 commit comments

Comments
 (0)