diff options
Diffstat (limited to 'src/tests/sysdb-tests.c')
-rw-r--r-- | src/tests/sysdb-tests.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c index 0b042cbd..99d6213d 100644 --- a/src/tests/sysdb-tests.c +++ b/src/tests/sysdb-tests.c @@ -4363,8 +4363,12 @@ START_TEST(test_sysdb_svc_remove_alias) ret = sysdb_svc_remove_alias(test_ctx->sysdb, dn, aliases[1]); fail_if (ret != EOK, "[%s]", strerror(ret)); - sysdb_transaction_commit(test_ctx->sysdb); - sysdb_transaction_start(test_ctx->sysdb); + + ret = sysdb_transaction_commit(test_ctx->sysdb); + fail_if(ret != EOK); + + ret = sysdb_transaction_start(test_ctx->sysdb); + fail_if(ret != EOK); /* Set aliases[1] to NULL to perform validation checks */ aliases[1] = NULL; |