Skip to content

Commit

Permalink
test: lib-index: Ensure conficts_seqs is created in test
Browse files Browse the repository at this point in the history
Makes static analyzers happier
  • Loading branch information
cmouse authored and GitLab committed Mar 30, 2017
1 parent 50e44da commit 108bb19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-index/test-mail-index-transaction-finish.c
Expand Up @@ -152,6 +152,8 @@ test_mail_index_transaction_finish_check_conflicts(unsigned int n_so_far)
t->max_modseq = 6;
MAIL_INDEX_TRANSACTION_FINISH(t, n_so_far);

i_assert(array_is_created(&conflict_seqs));

conflicts = array_get(&conflict_seqs, &count);
test_assert(count == 2);
test_assert(conflicts[0].seq1 == 6 && conflicts[0].seq2 == 6);
Expand Down

0 comments on commit 108bb19

Please sign in to comment.