summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stancliff <matt@genges.com>2015-01-08 17:26:22 -0500
committerMatt Stancliff <matt@genges.com>2015-01-08 17:26:22 -0500
commitc642079a8055a84be770a6eb44e66bcbb42820bd (patch)
treec4e4387ced6172f96e347205604bc123cc102901
parent74b7495f9308f2c183ff24fa482c5304a444cd90 (diff)
downloadhiredict-c642079a8055a84be770a6eb44e66bcbb42820bd.tar.xz
Update test error message detection for dead hosts
Fixes #294
-rw-r--r--test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test.c b/test.c
index 93116bd..3f9946f 100644
--- a/test.c
+++ b/test.c
@@ -341,6 +341,7 @@ static void test_blocking_connection_errors(void) {
strcmp(c->errstr,"Can't resolve: idontexist.local") == 0 ||
strcmp(c->errstr,"nodename nor servname provided, or not known") == 0 ||
strcmp(c->errstr,"No address associated with hostname") == 0 ||
+ strcmp(c->errstr,"Temporary failure in name resolution") == 0 ||
strcmp(c->errstr,"no address associated with name") == 0));
redisFree(c);