From: Trond Norbye Date: Sat, 5 Jun 2010 19:17:33 +0000 (+0200) Subject: memcapable shouldn't be so picky about the error messages.. X-Git-Tag: 0.41~30^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=953ccc8bb05760560c74c81e90d7a48727e4632b;p=m6w6%2Flibmemcached memcapable shouldn't be so picky about the error messages.. --- diff --git a/clients/memcapable.c b/clients/memcapable.c index 9921f1f1..08524c49 100644 --- a/clients/memcapable.c +++ b/clients/memcapable.c @@ -1173,9 +1173,9 @@ static enum test_return receive_error_response(void) { char buffer[80]; execute(receive_line(buffer, sizeof(buffer))); - verify(strncmp(buffer, "ERROR\r\n", 7) == 0 || - strncmp(buffer, "CLIENT_ERROR:", 13) == 0 || - strncmp(buffer, "SERVER_ERROR:", 13) == 0); + verify(strncmp(buffer, "ERROR", 5) == 0 || + strncmp(buffer, "CLIENT_ERROR", 12) == 0 || + strncmp(buffer, "SERVER_ERROR", 12) == 0); return TEST_PASS; }