Skip to content

Commit

Permalink
(fix) test
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 committed Feb 27, 2017
1 parent b9e0c0c commit c506ebc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c506ebc

Please sign in to comment.