Update test error message detection for dead hosts

Fixes #294
This commit is contained in:
Matt Stancliff 2015-01-08 17:26:22 -05:00
parent 74b7495f93
commit c642079a80

1
test.c
View File

@ -341,6 +341,7 @@ static void test_blocking_connection_errors(void) {
strcmp(c->errstr,"Can't resolve: idontexist.local") == 0 || strcmp(c->errstr,"Can't resolve: idontexist.local") == 0 ||
strcmp(c->errstr,"nodename nor servname provided, or not known") == 0 || strcmp(c->errstr,"nodename nor servname provided, or not known") == 0 ||
strcmp(c->errstr,"No address associated with hostname") == 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)); strcmp(c->errstr,"no address associated with name") == 0));
redisFree(c); redisFree(c);