diff --git a/src/test/java/net/rubyeye/xmemcached/test/unittest/AWSElasticCacheClientIT.java b/src/test/java/net/rubyeye/xmemcached/test/unittest/AWSElasticCacheClientIT.java index 33d42c0b7..9c36d0d15 100644 --- a/src/test/java/net/rubyeye/xmemcached/test/unittest/AWSElasticCacheClientIT.java +++ b/src/test/java/net/rubyeye/xmemcached/test/unittest/AWSElasticCacheClientIT.java @@ -89,7 +89,7 @@ public void testInvalidConfig() throws Exception { new InetSocketAddress(2271)); fail(); } catch (IllegalStateException e) { - assert (e.getMessage().contains("Invalid server")); + assertTrue(e.getMessage().contains("failed")); } finally { configServer.stop(); } diff --git a/src/test/java/net/rubyeye/xmemcached/test/unittest/StandardHashMemcachedClientIT.java b/src/test/java/net/rubyeye/xmemcached/test/unittest/StandardHashMemcachedClientIT.java index 1c1058726..899572a8f 100644 --- a/src/test/java/net/rubyeye/xmemcached/test/unittest/StandardHashMemcachedClientIT.java +++ b/src/test/java/net/rubyeye/xmemcached/test/unittest/StandardHashMemcachedClientIT.java @@ -190,9 +190,9 @@ public void testDecrWithNoReply() throws Exception { assertTrue(memcachedClient.set("a", 0, "100")); memcachedClient.decrWithNoReply("a", 50); - assertEquals("50", memcachedClient.get("a")); + assertEquals("50", ((String) memcachedClient.get("a")).trim()); memcachedClient.decrWithNoReply("a", 4); - assertEquals("46", memcachedClient.get("a")); + assertEquals("46", ((String) memcachedClient.get("a")).trim()); } @Override