diff options
author | Michal Zidek <mzidek@redhat.com> | 2012-08-13 16:37:13 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-15 13:51:22 +0200 |
commit | 9ab243b369ba317cc964080786dbcdebaf23d6be (patch) | |
tree | 7a08b9d00a11e2946a00bcee9b8fc093ee10b19f /src/tests | |
parent | 4f76afc76610a26da85438e5657a6cb5e83c787a (diff) | |
download | sssd-9ab243b369ba317cc964080786dbcdebaf23d6be.tar.gz sssd-9ab243b369ba317cc964080786dbcdebaf23d6be.tar.bz2 sssd-9ab243b369ba317cc964080786dbcdebaf23d6be.zip |
Duplicate detection in fail over did not work.
https://fedorahosted.org/sssd/ticket/1472
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/fail_over-tests.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/fail_over-tests.c b/src/tests/fail_over-tests.c index 6f4843ca..3a7c4ae4 100644 --- a/src/tests/fail_over-tests.c +++ b/src/tests/fail_over-tests.c @@ -114,11 +114,11 @@ START_TEST(test_fo_new_service) sprintf(buf, "service_%d", i); check_leaks_push(ctx); - ret = fo_new_service(ctx->fo_ctx, buf, &services[i]); + ret = fo_new_service(ctx->fo_ctx, buf, NULL, &services[i]); fail_if(ret != EOK); } - ret = fo_new_service(ctx->fo_ctx, "service_3", &service); + ret = fo_new_service(ctx->fo_ctx, "service_3", NULL, &service); fail_if(ret != EEXIST); for (i = 9; i >= 0; i--) { @@ -223,11 +223,11 @@ START_TEST(test_fo_resolve_service) fail_if(ctx == NULL); /* Add service. */ - fail_if(fo_new_service(ctx->fo_ctx, "http", &service[0]) != EOK); + fail_if(fo_new_service(ctx->fo_ctx, "http", NULL, &service[0]) != EOK); - fail_if(fo_new_service(ctx->fo_ctx, "ldap", &service[1]) != EOK); + fail_if(fo_new_service(ctx->fo_ctx, "ldap", NULL, &service[1]) != EOK); - fail_if(fo_new_service(ctx->fo_ctx, "ntp", &service[2]) != EOK); + fail_if(fo_new_service(ctx->fo_ctx, "ntp", NULL, &service[2]) != EOK); /* Add servers. */ fail_if(fo_add_server(service[0], "localhost", 20, NULL, true) != EOK); |