Permalink
Browse files

Remove test for "stats cachedump".

In the most recent memcached memcached branch, stats cachedump
has been removed.  It now returns an error saying it's not supported.

See also:
http://code.google.com/p/memcached/issues/detail?id=207
http://www.couchbase.com/issues/browse/MB-4058
http://review.couchbase.org/#change,13854

Change-Id: Ib3d344e7a0db28994017c515e1c56c4efdcfae19
Reviewed-on: http://review.couchbase.org/14142
Tested-by: Matt Ingenthron <matt@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
  • Loading branch information...
1 parent 98aafe1 commit b93ff8f7f18893972976df363b785134dc7ba6d4 @ingenthr ingenthr committed with mikewied Mar 21, 2012
Showing with 0 additions and 16 deletions.
  1. +0 −16 src/test/java/net/spy/memcached/ProtocolBaseCase.java
@@ -101,22 +101,6 @@ public void testGetStatsSizes() throws Exception {
assertTrue(Integer.parseInt(noItemsSmall) >= 1);
}
- public void testGetStatsCacheDump() throws Exception {
- if (isMoxi()) {
- return;
- }
- // There needs to at least have been one value set or there
- // won't be anything to dump
- client.set("dumpinitializer", 0, "hi");
- Map<SocketAddress, Map<String, String>> stats =
- client.getStats("cachedump 1 10000");
- System.out.println("Stats cachedump: " + stats);
- assertEquals(1, stats.size());
- Map<String, String> oneStat = stats.values().iterator().next();
- String val = oneStat.get("dumpinitializer");
- assertTrue(val + "doesn't match", val.matches("\\[2 b; \\d+ s\\]"));
- }
-
public void testDelayedFlush() throws Exception {
assertNull(client.get("test1"));
assert client.set("test1", 5, "test1value").getStatus().isSuccess();

0 comments on commit b93ff8f

Please sign in to comment.