tests: Fix copy/paste error in queue test

Coverity is pretty good at detecting copy/paste errors.
This commit is contained in:
Michael Catanzaro 2021-03-16 12:52:08 -05:00
parent 01101813a5
commit 3a74ad128e

View File

@ -435,7 +435,7 @@ random_test (gconstpointer d)
g_assert (g_queue_peek_head (q) == NULL);
break;
case PEEK_TAIL:
if (qinf->head)
if (qinf->tail)
g_assert (qinf->tail->data == g_queue_peek_tail (q));
else
g_assert (g_queue_peek_tail (q) == NULL);