Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
remove test case for Standard_MemoryControl which will always fail see https://github.com/yacy/yacy_search_server/pull/114
reger777cb5b81203
diff --git a/test/java/net/yacy/kelondro/util/MemoryControlTest.java b/test/java/net/yacy/kelondro/util/MemoryControlTest.javadeleted file mode 100644index 5c8666436..000000000--- a/test/java/net/yacy/kelondro/util/MemoryControlTest.java+++ /dev/null@@ -1,43 +0,0 @@--package net.yacy.kelondro.util;--import static org.junit.Assert.assertTrue;-import org.junit.Test;---public class MemoryControlTest {-- final int onemb = 1024 * 1024;-- /**- * Test of request method, of class MemoryControl.- */- @Test- public void testRequest_StandardStrategy() {- MemoryControl.setStandardStrategy(true);- MemoryControl.setProperMbyte(24);-- int memblock = onemb * 13; // memsize to allocate-- int iterations = (int) MemoryControl.available() / memblock;- int arraysize = (int) MemoryControl.maxMemory() / memblock + 10;-- byte[][] x = new byte[arraysize][];-- int i = 0;-- while (i < arraysize && MemoryControl.request(memblock, false)) {- x[i] = new byte[memblock];- // for realistic test produce some memory avail to GC- if (MemoryControl.request(memblock, false)) {- x[i] = new byte[memblock];- }-- i++;- }- System.out.println("allocated " + i + " * " + memblock/onemb + " MB = " + i*memblock/onemb + " MB");-- assertTrue(i >= iterations);- }--}