Skip to content

Commit

Permalink
Update new edge case test too
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <[email protected]>
  • Loading branch information
cole-miller committed Aug 26, 2024
1 parent 0f6d5ad commit 881bc4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/test_cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@ TEST(cluster, last_entry_edge_cases, setUp, tearDown, 0, NULL)
rv = dqlite_node_describe_last_entry(first->dqlite, &index, &term);
munit_assert_int(rv, ==, 0);
/* The log contains only the bootstrap configuration. */
munit_assert_ullong(index, ==, 1);
munit_assert_uint64(index, ==, 1);
/* The bootstrap configuration is always tagged with term 1. */
munit_assert_ullong(term, ==, 1);
munit_assert_uint64(term, ==, 1);
test_server_run(first);

struct test_server *second = &f->servers[1];
Expand All @@ -356,8 +356,8 @@ TEST(cluster, last_entry_edge_cases, setUp, tearDown, 0, NULL)
munit_assert_int(rv, ==, 0);
/* We didn't bootstrap and haven't joined the leader, so our log is
* empty. */
munit_assert_ullong(index, ==, 0);
munit_assert_ullong(term, ==, 0);
munit_assert_uint64(index, ==, 0);
munit_assert_uint64(term, ==, 0);
test_server_run(second);

return MUNIT_OK;
Expand Down

0 comments on commit 881bc4c

Please sign in to comment.