summaryrefslogtreecommitdiff
path: root/server/tests
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-01-13 14:13:14 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-01-14 09:00:08 -0500
commit815db657bea77807798aebd782cfa69eb73b3b38 (patch)
tree802590678a9a8a36e7fba2bae076aaa18ebfdebf /server/tests
parent71585aa7e7cfb414530dc41783669a1566099890 (diff)
downloadsssd-815db657bea77807798aebd782cfa69eb73b3b38.tar.gz
sssd-815db657bea77807798aebd782cfa69eb73b3b38.tar.bz2
sssd-815db657bea77807798aebd782cfa69eb73b3b38.zip
Explicitly set async DNS timeout
We will allow 5s per DNS server, no retries.
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/fail_over-tests.c2
-rw-r--r--server/tests/resolv-tests.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/fail_over-tests.c b/server/tests/fail_over-tests.c
index 16cc60e3..c3e9dfe5 100644
--- a/server/tests/fail_over-tests.c
+++ b/server/tests/fail_over-tests.c
@@ -71,7 +71,7 @@ setup_test(void)
fail("Could not init tevent context");
}
- ret = resolv_init(ctx, ctx->ev, &ctx->resolv);
+ ret = resolv_init(ctx, ctx->ev, 5, &ctx->resolv);
if (ret != EOK) {
talloc_free(ctx);
fail("Could not init resolv context");
diff --git a/server/tests/resolv-tests.c b/server/tests/resolv-tests.c
index d6b8c4f3..0c18dfdc 100644
--- a/server/tests/resolv-tests.c
+++ b/server/tests/resolv-tests.c
@@ -73,7 +73,7 @@ static int setup_resolv_test(struct resolv_test_ctx **ctx)
return EFAULT;
}
- ret = resolv_init(test_ctx, test_ctx->ev, &test_ctx->resolv);
+ ret = resolv_init(test_ctx, test_ctx->ev, 5, &test_ctx->resolv);
if (ret != EOK) {
fail("Could not init resolv context");
talloc_free(test_ctx);