Skip to content

Commit

Permalink
A bit more info on dqlite_node_create failure
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <[email protected]>
  • Loading branch information
cole-miller committed Feb 20, 2024
1 parent d408763 commit 731e925
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/lib/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ void test_server_start(struct test_server *s, const MunitParameter params[])
int rv;

rv = dqlite_node_create(s->id, s->address, s->dir, &s->dqlite);
munit_assert_int(rv, ==, 0);
if (rv != 0) {
munit_errorf("dqlite_node_create: %s", dqlite_node_errmsg(s->dqlite));

Check warning on line 66 in test/lib/server.c

View check run for this annotation

Codecov / codecov/patch

test/lib/server.c#L66

Added line #L66 was not covered by tests
}

rv = dqlite_node_set_bind_address(s->dqlite, s->address);
munit_assert_int(rv, ==, 0);
Expand Down

0 comments on commit 731e925

Please sign in to comment.